This process can be done by using a trap for a message on your system.
MPF Exit might work
CBTTAPE.ORG might have a process you can tailor
Any Scheduling software will have a file trigger function
What options are there?
This is more complicated without scheduling software. You will need to find a
process that monitors for messages and then provides an action for that message
Do you have any automation software like CA OPS/MVS or IBM TIVOLI? Basically
you will be building and maintaining a process that many vendor software has
already done.
For example on the CBTTAPE.ORG you could search for MES (short for message) and
find file 597
IST123I,USEREXIT(MPFCMDS)
When message IST123I occurs, standard MVS MPF processing will invoke the
MPFCMDS exit. MPFCMDS extracts the message id from the first 8 bytes of the
message text and then executes the procedure MPFCMDS with the parameter
MEMBER=IST123I. This procedure executes COMMAND (found at CBT file 088) and
uses as input the member IST123I from YOUR.CMDS.PDS. Having found this member,
COMMAND reads each line and, if it is not a comment (an asterisk in column 1),
issues the command as supplied.
LIMITATIONS
Message numbers are restricted to a maximum of 8 bytes (length of a PDS member
name). No code has been implemented to handle longer messages. The commands
than can be used in the input member is limited by the program "COMMAND". For
details, have a look at member $COMMAND. This program could also be
substituted with another command-processor. (Just update procedure MPFCMDS for
this).
This will provide a basic MPF exit where you can trap the message, then perform
some function. I do not think this is trivial.
You could also look at SYSTEM REXX for a possible solution.
Lizette
> -----Original Message-----
> From: IBM Mainframe Discussion List <[email protected]> On Behalf Of
> venkat kulkarni
> Sent: Sunday, May 06, 2018 4:45 AM
> To: [email protected]
> Subject: Job submit using REXX
>
> Hello Group,
>
>
> We have requirement of setting up process of handling FTP and then submit
> Job with FTP dataset. The process goes like this,
>
>
>
> a) We use DCON for communication purpose and receive files in our local z/OS
> system in GDG format from remote site
>
> b) once we receive this file, operator put this file name in our Job and
> process it further.
>
>
>
>
>
> As per below messages, FTP.DATA.** are the files, which are saved in our
> system and these files are placed into JCL for further process by operator.
>
>
>
>
>
> i)
>
> SVTM052I STEP01 COPY FDDB4142( 95,456)
>
> SVTM052I FROM E2PP.DW801P.WTALZUP.XM.G0520V00
>
> SVTM052I TO FTP.DATA.ATRAIL.G0458V00
>
> SVTM052I COMPLETED 00000000/SCPA000I
>
>
>
>
>
> ii)
>
> SVTM052I STEP01 COPY FDDB4099( 95,458)
>
> SVTM052I FROM G12P.DW801P.XTALZUP.XM.G1557V00
>
> SVTM052I TO FTP.DATA.AUDIT.TRAIL.G1568V00
>
> SVTM052I COMPLETED 00000000/SCPA000I
>
>
>
> iii)
>
> SVTM052I STEP01 COPY FDDB4052( 95,516)
>
> SVTM052I FROM G12P.IBD003.X2BSN1.XM.G2904V00
>
> SVTM052I TO FTP.DATA.IAS.G3486V00
>
> SVTM052I COMPLETED 00000000/SCPA000I
>
>
>
> So, basically we want to capture these dataset names from this message
> SVTM052I and send message to operator that file has been received and then
> submit one batch Job by putting this
>
> file name.
>
>
> Is there any way to automate this whole process. I am new to REXX, so if
> someone can guide me on this solution.We receive these files 3-4 times in a
> day or even more.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN