When a dataset is UNCATALOGED in a JOBSTEP, how to get its
UNIT and VOL in JCL to refer in subsequent steps ?

Answer Posted / rajesh_m13

using IEHINIIT utility we can do so..

//label dd unit=(TAPE,,DEFER),DISP=(,KEEP),LABEL=(,SL)
//SYSIN DD *
LABEL INITT SER=DEVSMS,DISP=REWIND
/*

This will intilize tape,it will write the volume serial
number to the tape

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Immediate Job opening for mainframe professionals in Keane Bangalore. Please find the below details: Organization: Keane India Location: Bangalore Skill: COBOL, JCL,VSAM,DB2,CICS,IMS,REXX,CLIST Exp: 1 to 4 years only Employment Type: Permenant Employee Note: If you have attended keane interview in past 6 months please ignore this job opening. Please respond to email id keanemfjob@gmail.com OR keanemfjob@yahoo.in with your latest resume and following details, We will contact you within 24 hours: Total IT Exp: Exp in Mainframe: Current CTC: Expected CTC: Notice Period:

3534


How to pass data to a program that is coded in an exec statement?

836


what is DSN in JCL and what are the parameters to declare the DSN?

726


Is it possible to code instream data in a PROC?

754


what is the purpose of coding class parameter in job statement?

726






What is the purpose of dd?

728


What are steplib and joblib? What for they are used?

697


what is the use of JCL?

666


How do you submit a job for execution?

640


What are the 2 types of parameters in dd statement?

654


What do you understand by jcl?

632


Explain the purpose of dd * statement in jcl?

643


1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

7093


What does a disposition of (new,catlg,keep) for a dsn mean?

619


List in order the hierarchical levels of jcl?

672