On Thu, 25 Aug 2011 13:45:12 -0500, Henrique Seganfredo 
<[email protected]> wrote:

>Hello,
>
>I am trying to run a job that calls BPXBATCH do execute a Unix script.
Far easier to use Co:Z batch...

>
>The Unix script tries to copy the file from the Unix environment to a MVS 
>dataset. I have tried these two approaches. The filename is variable.
>
>1) cp -P "RECFM=FB,SPACE=(CYL,(1,1)),LRECL=96,BLKSIZE=0" $myfilevar.ebcdic 
>"//'PSTR.TEMP'"

I have tested this with exactly your JCL. Works like a charm...

>JCL:
>//XXXXXXX JOB YYYYYY,TIME=1
>//COPY     EXEC PGM=BPXBATCH,REGION=8M,COND=(0,NE)
>//STDIN    DD SYSOUT=*
>//STDOUT   DD SYSOUT=*
>//STDPARM  DD *
>sh /spb/bin/Copy.sh
>//*


>Why the dataset appears to be "in use" ?? It DOES NOT EVEN exists!
I suggest you look again. It must exist...

Cheers,

Jantje.

----------------------------------------------------------------------
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

Reply via email to