On Mon, 20 Jan 2014 22:09:50 -0500, Shmuel Metz (Seymour J.) wrote: > on 01/20/2014 at 11:17 AM, Paul Gilmartin <paulgboul...@aim.com> said: > >>I agree with John, rather [than] Shmuel. In the OP's command (which >>Shmuel trimmed), it appears that he was trying to write a pax >>archive, not extract one. > >The original command, which you didn't quote either, was the value of >"pax -w -X -z -x pax -f //DD:PAX" aDir; the -f option gives an input, >not an output: > > -f archive Lets you specify the name of the archive file instead > of using the standard input > In: http://pic.dhe.ibm.com/infocenter/zos/v2r1/topic/com.ibm.zos.v2r1.bpxa500/r4paxsh.htm
pax — Interchange portable archives z/OS UNIX System Services Command Reference SA23-2280-00 ... Restrictions: When using pax, keep these restrictions in mind. ... o When writing to an MVS data set, the -f archive parameter must be used to identify the data set. ... –f archive Lets you specify the name of the archive file instead of using the standard input for list mode, read mode (–r operations), and the standard output for write mode (–w). ... (Speaking of excess trimming: you trimmed the relevant clause and left the irrelevant!) The OP supplied "-w", so "–f archive" identifies an output archive, rather than an input archive file. And I'll correct an apparent error of John M's when he said only one change to the OP's code is needed. He also needs: pax -w -X -z -x pax # omitting the "-f" option, in addition to: paxRC=bpxwunix(wCMD,,"DD:PAX",stderr.) ... which doesn't work because bpxwunix inherits Rexx's restriction on data set attributes. The OP's intention to create, not extract an archive was clear to most of us; I consider John's omission typographic rather than conceptual (right, John?) And your (mis)interpretation to be disingenuous rather than misinformed. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN