Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Does the INTRDR always executes the last step in a Job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
hcl_ln

New User


Joined: 14 Sep 2005
Posts: 21

PostPosted: Thu Jan 04, 2007 12:40 am    Post subject: Does the INTRDR always executes the last step in a Job
Reply with quote

All -

May be this is a dumb Q, but wanted to see if there is a way around. icon_sad.gif

I am trying to run a job using INTRDR, as below.
STEP1 & 2 are actually using INTRDR and STEP3 is actually using the files created from STEP1 & STEP2.
My job doesn't wait for STEP1 & STEP2 to be finished and STEP3 immediately kicks off, so gets a JCL error, because file not found.

Is there a way to correct this or does the INTRDR always the last step of the particular job?

Code:

//jobcard and job info ...
//*
//**********************************************************
//*   use INTRDR-1               
//**********************************************************
//STEP1  EXEC PGM=IEBGENER                                         
//SYSPRINT DD SYSOUT=*                                               
//SYSIN    DD DUMMY                                                   
//SYSUT1   DD DSN=A.B.C(mbr1),DISP=SHR             
//SYSUT2   DD SYSOUT=(,INTRDR)                                       
//*                                                                   
//**********************************************************
//*   use UNTRDR-2               
//**********************************************************
//STEP2  EXEC PGM=IEBGENER                                         
//SYSPRINT DD SYSOUT=*                                               
//SYSIN    DD DUMMY                                                   
//SYSUT1   DD DSN=A.B.C(mbr2),DISP=SHR             
//SYSUT2   DD SYSOUT=(,INTRDR)                                       
//*                                                                   
//*                                                                   
//*****************************************************
//*   FORMAT INTERNET RECORD TO ATTACHMENT RECORD LAYOUT
//*****************************************************
//STEP3    EXEC PGM=PGM1,COND=(0,NE)                 
//*****************************************************
//STEPLIB   DD DSN=LOADLIB,DISP=SHR             
//               DD DSN=LOADLIB,DISP=SHR             
//INDD   DD DSN=A.B.C,DISP=SHR         
//OUTDD DD DSN=A.B.C.D,
//            DISP=(NEW,CATLG,CATLG)
//            SPACE=.., UNIT=.., DCB=..
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jan 04, 2007 1:13 am    Post subject:
Reply with quote

Hello,

You may use INTRDR anywhere in a jobstream. It doesn't have to be the last step(s).

One way to do what you want is have step1 do what it does and then submit a job that is step2. Have the second job do what it needs to do and then submit a job that is step3. To keep them in line, use the same job name in each.

Is there some reason to use the INTRDR? It looks liike this could be done easily by actually running the "submitted" steps within the one job.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Thu Jan 04, 2007 2:52 am    Post subject:
Reply with quote

Hi hcl_In,

First of all there are no dumb questions. We've all been there at the start of the 'new'.

Dick's answer is clear and correct. Just want to add 2 cents: same jobname will work fine under the condition (if I'm not mistaken) they are submitted into the same initiator/class.

@Dick: correct me if I'm wrong icon_wink.gif
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jan 04, 2007 4:09 am    Post subject:
Reply with quote

Hi George,

As far as i know and unless something has changed in the newest operating system(s), only 1 job of a given name will run at a time. This restriction is system-wide.

A few minutes go by. . . . .

Looked in the Fine Manual and found this:
Quote:

v For the job types TSO logon and batch processing, the jobname must be unique, otherwise:
? For TSO logon, duplicate jobnames fail. For example, if IBMUSER is logged on, another attempt to logon as IBMUSER will fail.
? For batch processing, duplicate jobnames are delayed. For example, if job BATCH01 is executing, then another job named BATCH01 will be delayed until the original job has completed.


Additional $.02's always welcome - they tell me i'm a couple short. . .<g>
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Thu Jan 04, 2007 4:35 am    Post subject:
Reply with quote

Hi Dick,

I will check at our site; what I posted was 'from ancient memory'. I will get back to you and may be give you 2 dimes icon_wink.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us