On Wed, 15 Jun 2022 18:31:04 +0300, saurabh khandelwal wrote: > >If I use rexx then how will I be able to use shell command in same job > In this thread, everyone seems to be advocating his favorite utility. I'll add mine: <https://www.ibm.com/docs/en/zos/2.5.0?topic=functions-bpxwunix>. BPXWUNIX is a very flexible tool for issuing UNIX commands from Rexx in any environment, TSO, IRXJCLL, or OMVS.
You can use the Rexx date() to build the "get" command. You can then copy the retrieved file elsewhere in the same script. I never mastered OGET. IEBGENER suffices for me and does not impose a requirement of TSO. One word of caution: Be sure that your Windows and z/OS are set to the same timezone (both Windows and z/OS are notoriously bad at handling timezones), and that your batch job runs on the same day the file was created. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
