hi pls clear my question

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
supriya
Member
Posts: 7
Joined: Wed Sep 27, 2006 12:19 pm

hi pls clear my question

Post by supriya » Wed Sep 27, 2006 12:41 pm

hi,
pls clear my question.
In cobol, how to submit one job from another job

User avatar
Kalicharan
Moderator
Posts: 31
Joined: Wed Feb 08, 2006 1:51 pm

Post by Kalicharan » Wed Sep 27, 2006 2:07 pm

Hi,

With Internal Reader - INTRDR, u can submit one job from another

Internal reader routines allow TSO jobs or application programs(like COBOL) to submit job streams to JES3 using output data sets. When a job stream enters the system, data management assigns the data sets directly to an internal reader. If an internal reader is not available, the system dynamically creates one. When JES3 schedules the internal reader, input service can proceed to process the data set as an input stream.

As mentioned, an application program can create a job and pass it to the JES3 internal reader. To pass the job to the internal reader, the program must write the job to a data set for which SYSOUT=(class,INTRDR) has been specified. The internal reader reads the job, then gives it to JES3 where the job is processed like other reader-submitted jobs.

If the submitter of an internal reader job is either a TSO user or has an associated TSO userid, the TSO userid will be propagated to the submitted job.

To display a list of all the internal readers in the system at any one time, issue the *INQUIRY,A,D=INTRDR command.
As the workload slows, input service will automatically terminate internal readers when they are no longer required.
The operator can also stop the internal reader by issuing a *CANCEL,INTRDR or a *CANCEL,J=jobno command


Thanks
Kalicharan.

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Internal Reader - INTRDR

Post by Krishna » Wed Sep 27, 2006 2:15 pm

Thanks Kali, good explanation.


Supriya,

Following code may helpful to you.

Code: Select all

//**********************************************************************
//**************THIS IS A ROUTINE WHICH CALLS ANOTHER JCL *** 
//**********************************************************************
//***************************************
//STEP05  EXEC PGM=IEBGENER 
//SYSTSPRT  DD SYSOUT=* 
//SYSPRINT  DD SYSOUT=* 
//SYSUT1   DD DSN=DRAL.XXXXXX.JCLLIB&#40;AUTO&#41;,DISP=SHR  <-- JCL needs to be submitted
//SYSUT2   DD SYSOUT=&#40;A,INTRDR&#41; 
//SYSIN      DD DUMMY 
//*********************************************************** 



Thanks,
Krishna

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others