Hi All,
i have requirement to submit a two JCL's through rexx inputting a cobol dataset and cobol copybook from the REXX panel.
Firstly the cobol copy book is used in the first job submitted through rexx for creating a output dataset( contains another job which uses COBOL dataset as input from the REXX panel). now i want the output dataset (JOB/JCL) to be executed with input as my COBOL dataset from the REXX panel.
Rexx panel
COBOL dataset : input dataset
Copy book : cobol copybook
Rexx1
here i have a rexx coding to execute the first JOB/JCL hardcoded in rexx stack which uses COBOL copy book from Rexx panel and create a output dataset(contains JCL/JOB).
Now i want JOB/JCL from the output dataset to be run inputting COBOL dataset from rexx panel.
Regards,
rakesh MS
submitting two JCL's using REXX
-
- Posts: 30
- Joined: Thu Mar 30, 2017 2:09 pm
- Skillset: mainframe
- Referer: surfing
- prino
- Posts: 641
- Joined: Wed Mar 11, 2009 12:22 am
- Skillset: PL/I - CICS - DB2 - IDMS - REXX - JCL, most in excess of three decades
- Referer: Google
- Location: Vilnius, Lithuania
- Contact:
Re: submitting two JCL's using REXX
Good luck. Now what is the question???
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
robert.ah.prins @ the.17+Gb.Google thingy
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: submitting two JCL's using REXX
the topic looks like a reworded continuation of
post57839.html#p57839
and anyway the description of the requirement was clear as mud
post57839.html#p57839
and anyway the description of the requirement was clear as mud

cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Posts: 30
- Joined: Thu Mar 30, 2017 2:09 pm
- Skillset: mainframe
- Referer: surfing
Re: submitting two JCL's using REXX
enrico-sorichetti wrote:the topic looks like a reworded continuation of
post57839.html#p57839
and anyway the description of the requirement was clear as mud
hi Enrico,
yes, you're right. It's contimuation of my tool which i was trying to built. i was successful in tweaking the code. Now what i want is to automate this things using REXX.
I want my rexx to submit two JOB's/JCL's with input (COBOL dataset and COBOL copybook) from REXX panel.
I don't know what you didn't understand from my previous post. The REXX panel accept COBOL dataset and COBOL book names, which is then used in the JOB/JCL to create a output dataset.
Regards,
Rakesh MS
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: submitting two JCL's using REXX
As said in your other topic there is no such thing as a COBOL data set - if the data in it had been created by a program using another language the data would have been the same. Also, there are no such objects as Rexx panels - they are ISPF panels: Rexx (and other languages) simply invokes ISPF to display and action the panels.
As to your requirement (about which you have not indicated what difficulties you are having - you have only expressed the requirement - it is not for us to do it) you ate aware that non-rexx commands are passed by the rexx interpreter to the environment that you specify with the ADDRESS keyword and defaults to TSO if you haven't specified anything else so if you have a SUBMIT statement in your rexx code where do think it will go - ISPFEXEC, TSO, Rexx, somewhere else?
As to your requirement (about which you have not indicated what difficulties you are having - you have only expressed the requirement - it is not for us to do it) you ate aware that non-rexx commands are passed by the rexx interpreter to the environment that you specify with the ADDRESS keyword and defaults to TSO if you haven't specified anything else so if you have a SUBMIT statement in your rexx code where do think it will go - ISPFEXEC, TSO, Rexx, somewhere else?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Posts: 30
- Joined: Thu Mar 30, 2017 2:09 pm
- Skillset: mainframe
- Referer: surfing
Re: submitting two JCL's using REXX
NicC wrote:As said in your other topic there is no such thing as a COBOL data set - if the data in it had been created by a program using another language the data would have been the same. Also, there are no such objects as Rexx panels - they are ISPF panels: Rexx (and other languages) simply invokes ISPF to display and action the panels.
As to your requirement (about which you have not indicated what difficulties you are having - you have only expressed the requirement - it is not for us to do it) you ate aware that non-rexx commands are passed by the rexx interpreter to the environment that you specify with the ADDRESS keyword and defaults to TSO if you haven't specified anything else so if you have a SUBMIT statement in your rexx code where do think it will go - ISPFEXEC, TSO, Rexx, somewhere else?
Thanks nicc,
I am using skeleton JCL to submit the job but to submit another job i need to validate the retun code from previous job. We use flasher here as spool, can you please tell me how to read flasher to get the retun code.
Regards,
Rakesh MS
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: submitting two JCL's using REXX
No I cannot - I haven't used flasher for decades and do not know if it has a rexx interface.
However, why not have the first job have a last step that will submit the second job? This is often suggested on the forum.
However, why not have the first job have a last step that will submit the second job? This is often suggested on the forum.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Similar Topics
- Replies
- Views
- Last post
-
- 12
- 3049
-
by sergeyken
View the latest post
Mon Sep 25, 2023 3:33 am
-
- 3
- 2114
-
by Robledo
View the latest post
Thu Mar 10, 2022 1:03 pm
-
- 5
- 2715
-
by Pedro
View the latest post
Sat Feb 06, 2021 4:56 am
-
- 6
- 3008
-
by willy jensen
View the latest post
Mon Aug 21, 2023 4:56 pm
-
- 2
- 1063
-
by sergeyken
View the latest post
Fri Jul 14, 2023 7:13 pm