Internal reader ?
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Job Control Language(JCL)

#1: Internal reader ? Author: cobcurious PostPosted: Wed Dec 10, 2003 11:07 pm
    —
Rolling Eyes Hi,
Can anybody explain what is an internal reader ?
Regrds
Cobcurious

#2:  Author: kolusuLocation: San Jose PostPosted: Thu Dec 11, 2003 7:09 am
    —
cobcurious,

INTRDR is an IBM-reserved name identifying the internal reader. The system places the output records for the internal reader into a buffer in your address space. When this buffer is full, JES places the contents on the spool; later, JES retrieves the new job from the spool.

Internal reader routines allow TSO jobs or application programs 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

Hope this helps...

Cheers

kolusu

#3:  Author: Bill DennisLocation: Iowa, USA PostPosted: Fri Dec 12, 2003 9:02 am
    —
Similarly, in JES2, the internal readers can be displayed using the $DRDI command.
Also, there are 2 special JES2 readers - TSOINRDR to accept TSO session LOGON JCL and STCINRDR to accept started task START command JCL streams.

Bill

#4:  Author: cobcurious PostPosted: Sun Dec 14, 2003 11:53 pm
    —
Hi ,
I thank you whole heartedly for the wonderful information.I want to know where does internal reader exactly fit in the processing cycle of a job ? We have to anyway run a job to process a program which "builds" the JCL ,it is obvious that the JCL which is "built" by the program is present at the output stage.Is it that the internal reader is present at the output phase of the job processing cycle which agains feeds the "built" jcl to the input phase ?
I would also like to know more on how to use internal
reader in CICS applications.Thank you again.
Regards
Itron

#5:  Author: kolusuLocation: San Jose PostPosted: Mon Dec 15, 2003 7:54 am
    —
cobcurious,

You are right that the Internal reader is present at the output phase of the job. The JCl is written into a file whose output destination is to the "internal" reader.When the dataset is closed and released, the system will "read" and process the contents just like any submitted job.

Code:

//OUTPUT     DD SYSOUT=(,INTRDR)


You can use a TDQ which is a bit old technique of submitting batch jobs from CICS. Now CICS TS supports SPOOL OPEN/WRITE commands which directly submits job to JES. The advantage of using these commands are, no need of destination table definitions, no need of assingning TDQ in the CICS startup JCL to INTRDR etc.

you will find more information on INTDR in this topic

http://www.mvsforums.com/helpboards/viewtopic.php?t=72

Check this link for a detailed explanation of SPOOL

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFHCAP34/4.6?DT=19990319124947

Hope this helps...

cheers

kolusu



MVSFORUMS.com -> Job Control Language(JCL)


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group