View previous topic :: View next topic
|
Author |
Message |
Ajit
New User
Joined: 06 Sep 2005 Posts: 3 Location: Bangalore
|
|
|
|
Hi All,
plz tell me the solution for the following problem-
I have a proc which has 20 steps which is very useful and used by several programs. For my job I want to execute only first 4 steps of that proc but without changing jcl b'coz other pgms are using that proc. |
|
Back to top |
|
|
radhakrishnan82
Active User
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
|
|
|
|
Then tag the first line of the job with a tag such as .A, and tag the last line needed of the job with a tag such as .B, then submit everything between the tags "SUBMIT .A .B". |
|
Back to top |
|
|
radhakrishnan82
Active User
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
|
|
|
|
you can also use NULL '//' at the end of step4.This will execute steps from 1 to 4. |
|
Back to top |
|
|
ravikumarreddy Warnings : 1 New User
Joined: 29 Jul 2005 Posts: 23
|
|
|
|
hi,
how we keep tags and all
let me clear this...
regards,
ravi |
|
Back to top |
|
|
radhakrishnan82
Active User
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
|
|
|
|
The job below will run from step 1 to 5.
Code: |
.A //AABBA JOB 1239MBS,'RADHA',CLASS=C,MSGCLASS=H,
0002// REGION=4096K,NOTIFY=&SYSUID
0003//*
0004//STEP0001 EXEC PGM=MYPROG
0005//*
0006//STEP0002 EXEC PGM=MYPROG
0007//*
0008//STEP0003 EXEC PGM=MYPROG
0009//*
0010//STEP0004 EXEC PGM=MYPROG
0011//*
0012//STEP0005 EXEC PGM=MYPROG
.B //*
0012//STEP0006 EXEC PGM=MYPROG
0013//* |
Hope this helps. |
|
Back to top |
|
|
ykishore
New User
Joined: 12 Aug 2005 Posts: 53 Location: USA
|
|
|
|
Hi
Normally ,we do call the PROCs from Job. as u mentioned ,Proc has 20 steps.when u call the proc ,certainly all the steps get executed.i believe we suppose to change the Proc accordingly!! or you have to cut and paste those 4 steps and execute !!!
User: RadhaKrisha mentioned that ,we can submit the range ( submit .a .b) but how cud this possible in Proc??? bcoz we cant execute the Proc alone, we have to call it from JOB? in JOB also we cant mentioned the same as we can only mention EXEC PROC??? hope you guys got my point !!! correct me if im wrong!!! |
|
Back to top |
|
|
radhakrishnan82
Active User
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
|
|
|
|
Its working fine.
NULL operator also works fine in this case.
did you tried at your end? |
|
Back to top |
|
|
radhakrishnan82
Active User
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
|
|
|
|
Now,i got ur query
Quote: |
User: RadhaKrisha mentioned that ,we can submit the range ( submit .a .b) but how cud this possible in Proc??? bcoz we cant execute the Proc alone, we have to call it from JOB? in JOB also we cant mentioned the same as we can only mention EXEC PROC??? hope you guys got my point !!! correct me if im wrong!!! |
Iam calling it from the job.As this is the case of first 5 steps,I gave the range from the job step to the end of the fifth step. |
|
Back to top |
|
|
|