View previous topic :: View next topic
|
Author |
Message |
SaiHema
New User
Joined: 21 May 2009 Posts: 8 Location: Chennai
|
|
|
|
Hi,
My job creates a flat file with the DSN names in my first step. I need to use this DSN in the Second step as a input for copying it to another file.
Do we have some method for handling this situation? Please Suggest. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
suggest splitting the process into two jobs.
1st JOB:- STEP1:create flat file with DSN
- STEP2:create and SUBMIT jcl for second job using DSN created in STEP1
2nd Job: your original second step - file copy |
|
Back to top |
|
|
SaiHema
New User
Joined: 21 May 2009 Posts: 8 Location: Chennai
|
|
|
|
Hi Dick,
Thanks for the response.
Can you please tell me how can the STEP2 in Job1 can be done during runtime without manual interruption?
Are u meaning that, I need to use either a COBOL/any program that generates the JCL?
If so, How can I submit the second job at a stretch.
Please can you give me an example. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
you could write a COBOL pgm or a REXX Script.
check the TSO/ISPF/REXX forum. there are plenty REXX of examples.
COBOL would have to write to INTRDR, the REXX Script would SUBMIT. |
|
Back to top |
|
|
SaiHema
New User
Joined: 21 May 2009 Posts: 8 Location: Chennai
|
|
|
|
Thanks Dick. I will Check the REXX examples. Hope this will help me in completing my task. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
you could write a COBOL pgm or a REXX Script. |
Or even a Sort |
|
Back to top |
|
|
|