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

How the execution of INTRDR? Is it like a separate JCL?


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

New User


Joined: 22 Aug 2008
Posts: 20
Location: india

PostPosted: Tue Sep 08, 2009 7:50 pm
Reply with quote

Hi,

In my requirement

The JCL1 will execute a Rexx program which will submit another one JCL2 through the INTRDR using TSO SUBMIT command. The rexx program waits till the INTRDR job gets over. In the INTRDR, the VSAM file is getting copied to PS file.

After the completion of this step, the JCL1 will submit a rexx to sleep for 30 minutes.

Can any one tell me whether the VSAM file is getting locked for 30 Minutes or untill the execution of the INTRDR JOB (JCL2).

Please help me in the confusion


Thanks in advance,
VInodh P M
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 08, 2009 8:00 pm
Reply with quote

Your subject line is misleading -- INTRDR is not executed, it is a facility available to the system. JCL copied to the internal reader will be submitted to the system similarly to doing a TSO SUBMIT command.

Does the job you are submitting to the internal reader end with /*EOF? If not, typically the job will not be submitted until either the internal reader is closed (by the end of the step) or another job is submitted by your program which will cause the first submitted job to go to converter / interpreter. So the VSAM file could be getting locked, depending upon how you've coded up your jobs.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Sep 08, 2009 8:01 pm
Reply with quote

Quote:
After the completion of this step, the JCL1 will submit a rexx to sleep for 30 minutes.

Why do you want to block an initiator for 30 minutes

What is the reason for the wait
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 08, 2009 8:03 pm
Reply with quote

Quote:
Why do you want to block an initiator for 30 minutes
My guess? To measure operator response time -- to see how fast they will cancel the job, since this practice violates production standards at most places I've worked. icon_smile.gif
Back to top
View user's profile Send private message
pmvino

New User


Joined: 22 Aug 2008
Posts: 20
Location: india

PostPosted: Tue Sep 08, 2009 8:17 pm
Reply with quote

1) THE JCL1 submits the following REXX program in step 1:


Please find the REXX pgm that submits the JCL

"ispexec ftopen temp"
"ispexec ftincl VSAMTOPS"
"ispexec ftclose"
"ISPEXEC VGET (ZTEMPF)"
JCL=ZTEMPF

X = OUTTRAP('LOG.')

ADDRESS TSO SUBMIT "'"JCL"'"

Where the VSAMTOPS is the member of my SKEL LIB. The Rexx is coded such a way that, after completion of the JOB, The job will get purged.


In VSAMTOPS member I am having the JCL like Below

//STEP100 EXEC PGM=IDCAMS
//SYSPRINT DD &SARW
//VSAM DD DSN=SYS2.OPCP.NCP,DISP=SHR
//SEQ DD DSN=&NVSAM..&MODE..OPC.NCP,UNIT=&SYSDA,
// SPACE=(TRK,(10,10)),
// DISP=(NEW,CATLG,CATLG),
// DCB=(LRECL=32004,RECFM=VB)
//SYSIN DD DSN=&NVSAM..&MODE..REXX.OPC.SCHDLE.CNTL(VSAMTOPS),
// DISP=SHR
//*

2) THE JCL1 has the Second Step to execute a rexx program for SLEEP 30 MIn

I must need this step, For allowing the third party to execute their prcocess.
Once this process gets completed then the scheduler will submit the next JOB for the sequent process.



My question is ..... Can the Third Party update the VSAM file within the JCL1 get finishes (ie During the execution of the JCL1 or with in 30 MIn).

Please Reply.....


Thank,
Vinodh P M
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Sep 09, 2009 1:42 am
Reply with quote

Hello,

Quote:
I must need this step, For allowing the third party to execute their prcocess.
Once this process gets completed then the scheduler will submit the next JOB for the sequent process.
Sorry, No, you don't. . .

There is no reason for the "delay" job. Everything you need can (and should) be done by scheduling.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 09, 2009 3:16 am
Reply with quote

Quote:
My question is ..... Can the Third Party update the VSAM file within the JCL1 get finishes (ie During the execution of the JCL1 or with in 30 MIn).
Your answer is ... it depends.

First, you absolutely do not ever, under any circumstances, want to force a 30-minute wait in a batch job. Waits are for transaction systems -- batch systems do not do transaction processing. If you need another job run 30 minutes from now, use the scheduling system installed at your site to start the new job -- but don't put a wait in a batch job; it ties up resources and frequently gets canceled.

Second, depending on whether or not your job has exclusive access to the VSAM file, another process may or may not be able to update the VSAM file. If multiple processes (jobs, TSO sessions, online sessions, or started tasks) need to update the VSAM file at the same time, you must use enqueue and dequeue mechanisms to enforce serialization of updates. Otherwise, your data will be corrupted -- maybe not today, maybe not tomorrow -- but at some point in time it will be corrupted.

Since you're just restating your problem over and over without providing any additional information (which job(s) need to UPDATE the VSAM file, for example), we cannot provide any clearer guidance to you.
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 Capturing Job Execution Information All Other Mainframe Topics 3
No new posts Parallel Sysplex - subprogram execution CICS 7
No new posts Prod parallel execution on mainframe ... CICS 1
No new posts SEPARATE UNIQUE and NON-UNIQUE in SEP... SYNCSORT 6
This topic is locked: you cannot edit posts or make replies. JCL execution fail COBOL program COBOL Programming 5
Search our Forums:

Back to Top