IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JOB Needs to put in a wait state for 2 minutes.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
narasridhar

New User


Joined: 12 Oct 2006
Posts: 32
Location: India

PostPosted: Sun Oct 07, 2007 1:53 am
Reply with quote

Hi All,

I have a requirement as below.

I have a REXX step in my job which is REXX script inturn submitting the other job that job is running for 2 minutes. But in the next step i am refering a files which is created by the new job which submitted by the REXX script. In the nxt step it is failing with the files missing message.

Between the two steps i need to include a wait step if any. Else please let me know any other alternative for the same.

Thanks,
Sri
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sun Oct 07, 2007 2:01 am
Reply with quote

Hi !

The current flow is ( if I understood correctly )

job1
...step11 submitting job job2
...step12 has to wait...
...
...
...step1n

job2
... step21

Why not change to :

Job1
...step11 submitting job2

job2
...step21
...step12
...
...
...step1n


regards

e.s
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sun Oct 07, 2007 2:32 am
Reply with quote

Just use a different approach copying inline

DSCOPY rexx

Code:

/*REXX - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/*                                                                   */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
Trace "O"                                                             
                                                                       
Address TSO "EXECIO * DISKR CNTL (STEM CNTL. FINIS"                   
last = cntl.0                                                         
temp = strip(cntl.last)                                               
indx = strip(word(temp,2))                                             
                                                                       
idsn = "'ENRICO.MF.A" || indx ||"'"                                   
odsn = "'ENRICO.MF.AOUT'"                                             
                                                                       
"ALLOC FI(SYSIN)  DUMMY "                                             
"ALLOC FI(SYSUT1) DA(" || idsn || ") SHR REUSE "                       
"ALLOC FI(SYSUT2) DA(" || odsn || ") SHR REUSE "                       
                                                                       
Address TSO "CALL 'SYS1.LINKLIB(IEBGENER)'"                           
                                                                       
Exit                                                                   


DSCOPY jcl

Code:

//ENRICOMF JOB (H001),'DSCOPY',NOTIFY=ENRICO,                           
//             CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1)                       
//* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//*            DSN=ENRICO.MF.JCLLIB(DSCOPY)                             
//* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//*                                                                     
//TSO     EXEC PGM=IKJEFT01,                                           
//             REGION=0M,                                               
//             DYNAMNBR=20                                             
//SYSPROC   DD DISP=SHR,DSN=ENRICO.MF.CLIST                             
//SYSABEND  DD SYSOUT=*                                                 
//SYSPRINT  DD SYSOUT=*                                                 
//SYSTSPRT  DD SYSOUT=*                                                 
//SYSTSIN   DD *                                                       
  DSCOPY                                                               
//CNTL      DD DISP=SHR,DSN=ENRICO.MF.JCLLIB(CNTL)                     


no need to submit a job and wait
Back to top
View user's profile Send private message
narasridhar

New User


Joined: 12 Oct 2006
Posts: 32
Location: India

PostPosted: Sun Oct 07, 2007 3:37 am
Reply with quote

enrico-sorichetti wrote:
Just use a different approach copying inline


Thanks alot Enrico. It worked now.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Wait for job rc CLIST & REXX 10
No new posts Started transaction enters "firs... CICS 3
No new posts End the job into error / abend state JCL & VSAM 3
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... DFSORT/ICETOOL 11
No new posts VSAM RLS Wait time JCL & VSAM 3
Search our Forums:

Back to Top