Submitting the JCL from REXX multiple times



IBM's Command List programming language & Restructured Extended Executor

Submitting the JCL from REXX multiple times

Postby arunmlvtec » Sun Jan 15, 2012 6:03 pm

Hi,

I have a scenerio where I have to compare the number of records in the different outputs of the same process. I have to submit the JCL 2 times & I have to compare the records of both the outputs. I am using REXX for this. Once I am submitting the JCL manually. And 2nd time I am trying to do it through REXX & in REXX I am comparing the number of records in both the output files. If the records doesnot matches. I have to again submit the JCL & again compare the records in the output files.
The problem I am facing is that when I submit the job, it is processed in the back end. And the REXX program continues to executes & in the later part of time it gives me ABEND. can anybody give me solutions/suggestions for it?
arunmlvtec
 
Posts: 2
Joined: Sun Jan 15, 2012 5:46 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Submitting the JCL from REXX multiple times

Postby NicC » Mon Jan 16, 2012 1:45 pm

Your requirement is not fully understood. Are you

comparing 2 files for equality?
if not equal then compare again? (If so, why should they change between compares?)

You do NOT have a program that submits a job and then wait for that job - you are tying up resource that could be tied up for hours if the job does not run for some time. Just submit the job manually, Wait for results and resubmit again, if necessary.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Submitting the JCL from REXX multiple times

Postby Pedro » Mon Jan 16, 2012 10:21 pm

And the REXX program continues to executes...


Instead of a single rexx program, split it into two. When the job finishes, manually execute rexx program two. (OR, add a second step to that batch job that executes rexx program two.) (OR, a three step job: 1) exec rexx program one, 2) compare step, and 3) execute rexx program two.)
Pedro Vera
User avatar
Pedro
 
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

Re: Submitting the JCL from REXX multiple times

Postby arunmlvtec » Wed Jan 18, 2012 1:39 am

Actually I am trying to automate the process of comparing the number of records. And the everytime the file would be having different data in the input. whenever we are submitting the job. So there can be a chance when we find the 2 outputs with equal records. and that time the program should exit from the loop.
Is there any concept of Queining for execution in REXX?
arunmlvtec
 
Posts: 2
Joined: Sun Jan 15, 2012 5:46 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Submitting the JCL from REXX multiple times

Postby Pedro » Wed Jan 18, 2012 2:02 am

Is there any concept of Queining for execution in REXX?


It is not clear what you are asking for. Please elaborate

Rexx is a powerful language. You can likely do what you want, but you must be clearer about what you want to do.
Pedro Vera
User avatar
Pedro
 
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post