The results are interesting when I actually tried using the cp command with //DD:xxxx(mem) :-)
The "cp" command doesn't properly handle the "//DD:xxxx(member)" syntax that fopen supports. It seems to always result in the following error, even if the output file DCB matches: >>> cp: FSUM6258 cannot open file "//DD:ISPPLIB": EDC5087I The specified file charac teristics did not match those of the existing file. But, "cat", which is *not* documented to support MVS dataset names (although I use it all the time), works perfectly. So, the following JCL actually works, and allows you to use JCL PROC variables to parameterize the member name that you want to assemble, which seems important to me. It might be better just to write a small assembler program that takes a member name as a parm and copies that member from a concatenated DD to some output DD, but this works. IMO, the solutions using a utility like IEBCOPY aren't ideal since they require control cards to specify the member name, which can't be parameterized in JCL without some other helper utility. //ASMLIB PROC MEM= //COPYSRC EXEC PGM=BPXBATSL, // PARM='PGM /bin/cat //DD:LIB(&MEM)' //LIB DD DSN=PDS1,DISP=SHR // DD DSN=PDS2,DISP=SHR // ... //STDERR DD SYSOUT=* //STDOUT DD DSN=&&SRC,DISP=(NEW,PASS), // SPACE=(CYL,(2,1)), // DCB=(LRECL=80,BLKSIZE=27920,RECFM=FB) //* //ASSEMBLE EXEC ASMAC //C.SYSIN DD DSN=&&SRC,DISP=(OLD,DELETE) // PEND Kirk Wolf Dovetailed Technologies ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html