Can temporary variable be stored even after the step fails



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Can temporary variable be stored even after the step fails

Postby ajuatsgp » Mon Aug 02, 2010 2:08 pm

Hi,
My output is TEMPORARY variable in one step.
I am using this TEMPORARY variable in the next step as input.
and I am using :
//SORTIN DD DSN=&&ABCD,DISP=(OLD,DELETE,KEEP) with an intention that if the job fails in the second step, to restart it from that step itself.

Please let me know if my understanding is correct or not.

Waiting for your response.
ajuatsgp
 
Posts: 82
Joined: Thu May 20, 2010 6:50 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Can temporary variable be stored even after the step fails

Postby NicC » Mon Aug 02, 2010 2:11 pm

Your understanding is wrong! You are using a temporary DATASET not a variable. Just allocate a normal dataset instead of the temporary one and make sure you have deletes at the right places to avoid DNVs (Duplicate Name on Volume).
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: Can temporary variable be stored even after the step fails

Postby steve-myers » Mon Aug 02, 2010 4:51 pm

I presume you want to send the data to a later step that will execute with a COND=ONLY. I think your idea is awfully unreliable, but if you specify just DISP=(,PASS) (e.g., no conditional disposition) it oughta work. I will often do -
//A       EXEC PGM=IEFBR14
//DUMP     DD  DISP=(MOD,DELETE),UNIT=SYSALLDA,SPACE=(TRK,0),
//             DSN-&SYSUID..XXX.DUMP
//B       EXEC PGM=TESTPGM
//SYSMDUMP DD  DISP=(,DELETE,CATLG),UNIT=SYSDA,DSN=*.A.DUMP,
//             SPACE=(CYL,(100,50),RLSE)
to save a dump data set for later analysis using IPCS. The RLSE parameter does not seem to be terribly reliable, but sometimes it works. This is about the only time I do a conditional DISP in my work.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post