|
|
| Author |
Message |
Bharath Nadipally
New User
Joined: 24 Jun 2008 Posts: 20 Location: Hyderabad
|
|
|
|
I have job as below.
| Code: |
//LSNBEMT JOB (54035,2140,00000,1111),'DOESNT EXIST PS',
// CLASS=A,MSGCLASS=H,NOTIFY=&SYSUID,MSGLEVEL=(1,1),
// RESTART=STEP02
//STEP01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LISTCAT ENTRIES('LSKT00.BLPLAN1.PS.TEST2')
/*
//IFBLK IF (STEP01.RC = 0) THEN
//*
//STEP02 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LISTCAT ENTRIES('LSKT00.BLPLAN1.PS.TEST2')
/*
//STEP03 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LISTCAT ENTRIES('LSKT00.BLPLAN1.PS.TEST2')
/*
//ENDIFBLK ENDIF
|
Here i am trying to restart job from STEP02 which is in IF block, but the step was not executed(may be because at the restart time STEP01 Return code may not be available.
Can anyone help me to restart this job from STEP02 by changing jobcard but without changing the job(using COND param) as it is a production job. |
|
| Back to top |
|
 |
References
|
|
 |
Bharath Nadipally
New User
Joined: 24 Jun 2008 Posts: 20 Location: Hyderabad
|
|
|
|
small correction:
Below is the jobcard(It should not have any step other than calling proc as per client standards)
| Code: |
//LSNBEMT JOB (54035,2140,00000,1111),'DOESNT EXIST PS',
// CLASS=A,MSGCLASS=H,NOTIFY=&SYSUID,MSGLEVEL=(1,1),
// RESTART=PROC.STEP02
// JCLLIB ORDER=LSNB00.LI.CNTL
//PROC EXEC IFPROC4
|
Below is the proc
| Code: |
//IFPROC4 PROC IFPROC4
//STEP01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LISTCAT ENTRIES('LSKT00.BLPLAN1.PS.TEST2')
/*
//IFBLK IF (STEP01.RC = 0) THEN
//*
//STEP02 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LISTCAT ENTRIES('LSKT00.BLPLAN1.PS.TEST2')
/*
//STEP03 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LISTCAT ENTRIES('LSKT00.BLPLAN1.PS.TEST2')
/*
//ENDIFBLK ENDIF
|
|
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3507 Location: Brussels once more ...
|
|
|
|
| Please post the output from the failed attempt. |
|
| Back to top |
|
 |
Bharath Nadipally
New User
Joined: 24 Jun 2008 Posts: 20 Location: Hyderabad
|
|
|
|
expat,
below is the output for the JCL. STEP02 and STEP03 are being FLUSHed(not exected).
JOBNAME STEPNAME PGM NAME RC
LSNBEMT STEP01 IDCAMS 04
LSNBEMT STEP02 IDCAMS FLUSH
LSNBEMT STEP03 IDCAMS FLUSH |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3507 Location: Brussels once more ...
|
|
|
|
Maybe they are not being executed because STEP01 has issued a RC04, and in this case they are NOT to be processed.
So where is the output from your restart - which is what I wanted to see. |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 653
|
|
| Back to top |
|
 |
Anuj D.
Global Moderator
Joined: 22 Apr 2006 Posts: 2156 Location: Phoenix, AZ
|
|
|
|
Hi,
| Bharath Nadipally wrote: |
| Below is the proc |
Tried to simulate the condition in question, I got the below error..
| Code: |
| IN-STREAM DATA NOT ALLOWED IN PROC |
Don't You get this with the code shown..? |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 653
|
|
|
|
Hi,
lets assume the PROC has no instream data, how do you restart STEP02 without altering the PROC ?
With normal restart, STEP02 & STEP03 just flush
Gerry |
|
| Back to top |
|
 |
Bharath Nadipally
New User
Joined: 24 Jun 2008 Posts: 20 Location: Hyderabad
|
|
|
|
Hi Gerry,
Problem was solved. Thank you very much. |
|
| Back to top |
|
 |
Bharath Nadipally
New User
Joined: 24 Jun 2008 Posts: 20 Location: Hyderabad
|
|
|
|
Hi anuj,
Actually I was running as a job in test library. But while moving to production, i have to have jobcard and proc as separate. so i have posted like that. Anyway, thank you for all your suggestions. |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 653
|
|
|
|
Hi,
my question still stands, can a restart be done when IF conditions are in a PROC without modyfying the PROC and actually executing the restarted step ?
Gerry |
|
| Back to top |
|
 |
P.RAJESH
New User
Joined: 20 Mar 2008 Posts: 28 Location: chennai
|
|
|
|
hi,
i tried your requirement by changeing the your if condition
shown below
//IFBLK IF (STEP01.RC = 0) | (ŽSTEP01.RUN)
Try with also. |
|
| Back to top |
|
 |
Bharath Nadipally
New User
Joined: 24 Jun 2008 Posts: 20 Location: Hyderabad
|
|
| Back to top |
|
 |
Bharath Nadipally
New User
Joined: 24 Jun 2008 Posts: 20 Location: Hyderabad
|
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 653
|
|
|
|
Hi,
maybe I'm missing something here, how do you override the PROC or are you suggesting to put //IFBLK IF (STEP01.RC = 0) | (ŽSTEP01.RUN)
permanetly in the PROC ?
Gerry |
|
| Back to top |
|
 |
|
|