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...


In a proc i will concatinate 4 dd statements.i want to
overide 3 dd statement through jcl how?

Answers were Sorted based on User's Feedback



In a proc i will concatinate 4 dd statements.i want to overide 3 dd statement through jcl how?..

Answer / premkumar

Since it is concatenated, you can't have DD names as
mentioned in the previous responses. suppose your 4 dd
statements inside a proc are as below

//myproc PROC
//STEP01 EXEC PGM=progname
//DD01 DD DSN=userid.base.file1
// DD DSN=userid.base.file2
// DD DSN=userid.base.file3
// DD DSN=userid.base.file4
//*

Now you can override the 3 dd statements in JCL as
//POCNAME1 myproc
//STEP01.DD01 DD DSN=userid.base.file5
// DD DSN=userid.base.file6
// DD DSN=userid.base.file7

Note: the fourth file has been left as it is because the
questionsis to override only the first 3 statments.

Is This Answer Correct ?    13 Yes 0 No

In a proc i will concatinate 4 dd statements.i want to overide 3 dd statement through jcl how?..

Answer / mchava

//PROC
//STEP1 EXEC PGM=PGM1
//dd1 DD dsn=file1
//dd2 DD dsn=fel2
//dd3 DD dsn=file3
//dd4 DD dsn=file4
//PROCSTEP1.dd3 DD dsn=file5
will override the dd3 file3 with file5

Is This Answer Correct ?    4 Yes 1 No

In a proc i will concatinate 4 dd statements.i want to overide 3 dd statement through jcl how?..

Answer / y@$w@nth

suppose your 4 dd statements inside a proc are as below

//myproc PROC
//STEP01 EXEC PGM=progname
//DD01 DD DSN=userid.base.file1
//DD02 DD DSN=userid.base.file2
//DD03 DD DSN=userid.base.file3
//DD04 DD DSN=userid.base.file4
// PEND
//STEP02 myproc
//STEP01.DD03 DD DSN=userid.base.orfile3
//

STEP01.DD03 DD DSN=userid.base.orfile3 this tells that
override the DD statement which name is DD03 inside a proc
myproc and inside STEP STEP01

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More JCL Interview Questions

how to code instream data in procedure?

3 Answers  


Is condition checking possible in jcl?

0 Answers  


how to allocate a dynamic dataset in jcl ?

3 Answers   Patni, TCS,


how you can direct the data to spool using SYSOUT option?

0 Answers  


How to find the length of variable length copybook using fileaid ??

1 Answers   CSC,


Can I copy the FB (fixed Block) record length file to a VB (variable Block)record length file and Vise Versa? If Yes then how ? is that thru one of the JCL utility ?

3 Answers  


What are the parameter in the job card wihtout which job won't run........

10 Answers   IBM,


i created one base gdg with lrecl = 100 , now i need to create versions with different lrecl =150,200 can it be possible to create like tht ?

1 Answers   Patni, Syntel,


how do u send return code from cobol to jcl ?

2 Answers   TCS,


I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?

3 Answers   Wipro,


i have 1000 records in input file and i want to sort it and the first 200 records to be placed in output file. how to do that??

14 Answers   L&T,


How to compare 2 files using File-Aid?

1 Answers   IBM,


Categories