...
The following example demonstrates uploading a text file from a Windows system to an ASA dataset on a z/OS system (some details have been omitted for clarity).
Panel | |
---|---|
Html bobswift | //SB0001 JOB CLASS=A,MSGCLASS=X,COND=(0,NE),NOTIFY=&SYSUID
//STEP010 EXEC UDMPRC
//LOGIN DD DISP=SHR,DSN=&SYSUID..LOGIN.CREDS
//OUTFILE DD DSN=&HLQ..UDMOUT,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(5,1),RLSE),UNIT=SYSDA,
// DCB=(DSORG=PS,RECFM=FBA,LRECL=151,BLKSIZE=1510)
//UNVSCR DD *
set echo=yes
open src=rmt.host.ipaddr xfile=login
filesys local=dd
mode type=text
cd src=c:\udmtests\data
# Use the asa attribute to translate the file
attrib local createop=replace asa=yes
copy src=asa_file.txt local=outfile
/*
//SYSIN DD *
-level info
//*
</pre> |
...
During the transfer, UDM will convert the text sequences to the corresponding ASA control characters.
...
The following example demonstrates downloading an ASA dataset from a z/OS system to a text file on a UNIX-based system (some details have been omitted for clarity).
Panel |
---|
<pre>
//SB0002 JOB CLASS=A,MSGCLASS=X,COND=(0,NE),NOTIFY=&SYSUID
//STEP010 EXEC UDMPRC
//LOGIN DD DISP=SHR,DSN=&SYSUID..LOGIN.CREDS
//INFILE DD DISP=SHR,DSN=&HLQ..UDMIN
//UNVSCR DD *
set echo=yes
open dst=rmt.host.ipaddr xfile=login
filesys local=dd
mode type=text trim=yes
cd dst=/home/udmtests/data
# Use the asa attribute to translate the file
attrib local asa=yes
attrib dst createop=replace
copy local=infile dst=asa_file.txt
/*
//SYSIN DD *
-level info
//*
</pre> |
...
During the transfer, UDM will convert the ASA control characters to the corresponding text sequences.
...