cp looks promising -- once I got past the old quadruple quotes problem. (Have to use SET symbols to get the whole thing into PARM=. Have to double quote the DSN because it's in a SET operand. Have to double them up again so they get into PARM= correctly. Sheesh!)
No errors, zero return code, but it only created the folder corresponding to the PDS, not the contents of the PDS. Let's see if I can do this // SET &Q='''' // SET P0='sh cp "//''''LEGACY.SMPE.INSTJCL''''" ' // SET P4='/u/userid/smpe/SCZA551' //* //CP EXEC PGM=BPXBATCH, // PARM=&Q.&P0.&P4.&Q //STDIN DD DUMMY //STDOUT DD SYSOUT=* //STDERR DD SYSOUT=* LEGACY.SMPE.INSTJCL has 9 members. I ended up with /u/userid/smpe/SCZA551/INSTJCL but it's empty. What do I have to do differently? I think I'm close! Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Friday, December 12, 2014 4:27 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: IKJ56500I COMMAND OPUTX NOT FOUND On 2014-12-12 15:29, Charles Mills wrote: > When I run it I get the subject error on SYSTSPRT. I can use TSO OPUTX ... > from my ISPF session. > > I am going to guess I need a STEPLIB of some sort on my IKJEFT01 > jobstep. I suspect you folks don't know the exact name of the library > at my site but perhaps you could give me a clue? > You appear to be trying to copy a legacy data set to a UNIX file. For that, I'd use the UNIX command: cp "//'LEGACY.DATA.SET(MEMBER)'" /unix/path/name (Nowadays. I used to use IEBGENER long ago.) -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN