This code is working if i want to transfer one DOC05 from mainframe to Unix. Below code is able to transfer one DOC05 file 'ABCXXXX' from dataset DNS.CCC.TT.BB.AA to unix location '/abc/xyz/' and file name is same as mainframe.
submit maxdelay=unlimited PHLS process SNODE=PGT snodeid=(XXXXX)
copy from (file=DNS.CCC.TT.BB.AA(ABCXXXX) snode)
to (file=/abc/xyz/ABCXXXX pnode
SYSOPTS="datatype=text:xlate=yes:strip.blank=no:")
pend;
copy from (file=DNS.CCC.TT.BB.AA(ABCXXXX) snode)
to (file=/abc/xyz/ABCXXXX pnode
SYSOPTS="datatype=text:xlate=yes:strip.blank=no:")
pend;
I want to transfer all job DOC05s from that above dataset to a directory on UNIX server and name of those files should be as in mainframe. Tried below code but it is giving error message
'more than 1 PDS members cannot be sent to a Non-PDS.
Can you please help ?
submit maxdelay=unlimited PHLS process SNODE=PGT snodeid=(XXXXX)
copy from (file=DNS.CCC.TT.BB.AA/ABC* snode)
to (file=/abc/xyz/ABCXXXX pnode
SYSOPTS="datatype=text:xlate=yes:strip.blank=no:")
pend;
copy from (file=DNS.CCC.TT.BB.AA/ABC* snode)
to (file=/abc/xyz/ABCXXXX pnode
SYSOPTS="datatype=text:xlate=yes:strip.blank=no:")
pend;