On Apr 3, 2022, at 11:53:23, Farley, Peter x23353 wrote:
>
> CC'ed to IBM-MAIN for a wider audience.
>
> DSN='TSOUSER.PDS(MEMBER01)'
> echo $DSN
> cat //"'$DSN'" | fgrep ''' STRING-TO-FIND '''
>
"cat //" ..." Is not documented as supported, but it sometimes
Works, so that may not be the cause of your problem.
"cp //... /dev/fd/1 | ..;" is documented as supported.
> I have tried this JCL to accomplish running the commands from a file. It
> runs with CC=0, but STDOUT is never populated:
>
> //RUNCMDS EXEC BPXBATCH,REGION=256M,
> // PARM='PGM /bin/sh . //"''TSOUSER.UNIXCMDS.SH''"'
> //STDOUT DD SYSOUT=*
> //STDERR DD SYSOUT=*
> //STDIN DD DUMMY
>
I'll suggest
// PARM='PGM /bin/cp //"''TSOUSER.UNIXCMDS.SH''" | /bin/sh'
--
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN