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

 

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: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 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: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 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: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 times

Re: Submitting the JCL from REXX multiple times

Postby mongan » Wed Jan 18, 2012 1:32 pm

As already said but to make it more clear, your Rexx submits the Job and tags a step to the job which will start the Rexx again after the job is finished. Then you can compare. Your jobs should run like this: First Job with a second Step that starts the Rexx. The Rexx starts the Second Job with a second Step that will start the Rexx again and your Rexx ends. The second Job runs and then starts the Rexx and you make your compare.
User avatar
mongan
 
Posts: 212
Joined: Tue Jan 11, 2011 8:32 pm
Has thanked: 1 time
Been thanked: 5 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post