Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Suppose a proc step has a DD statement like
//ABC DD DSN=TEST.FILE1,DISP=SHR
DSN=TEST.FILE2,DISP=SHR
and the above DD name is overridden from the JCL as given
below
//procstepname.ABC DD DSN=TEST.FILE3 - Will the DD
statement now have just TEST.FILE3 or it will be TEST.FILE3
and TEST.FILE2?
Suppose if it is overridden twice like
//procstepname.ABC DD DSN=TEST.FILE3
//procstepname.ABC DD DSN=TEST.FILE4
Will this give a JCL error? If not, what will be final
output?

Answer Posted / pmacmo

Question 1:
TEST.FILE3 and TEST.FILE2
Note:
If you just want TEST.FILE3 you must nullify the TEST.FILE1
and TEST.FILE2 concatenation as in:
//procstepname.ABC DD DSN=TEST.FILE3.DISP=SHR
// DD DSN=NULLFILE

Question 2:
TEST.FILE3 and TEST.FILE2, the second override will be
ignored

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

2297


Differentiate between addressing mode and run mode.

1137


What is jcl in mainframe, and how many types of jcl statements are there for a job?

1248


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

1253


What is the function of the steplib dd statement?

1256


Name the parameters which can be used to limit the number of records written to a sysout dataset?

1205


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

1136


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

1531


Explain about LMFREE�free data set from its association with data ID

1679


What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?

9807


what is the difference between JES3 and JES2?

1199


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

2502


How can a stopped job be started again?

1244


if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

2355


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

1177