how to concatenate datasets

Answers were Sorted based on User's Feedback



how to concatenate datasets ..

Answer / pkb

It is possible to process more than one data set as a single data set by concatenating the DD statements.

//QSAM0080 DD DSN=SIMOTIME.DATA.FILE0001,DISP=SHR
// DD DSN=SIMOTIME.DATA.FILE0002,DISP=SHR
// DD DSN=SIMOTIME.DATA.FILE0003,DISP=SHR
The following is an example of a COBOL SELECT statement.


here the COBOL program will read QSAM0080 and the DD statements will map the three files (FILE0001, FILE0002 and FILE0003) as one file. The program's initial read will get the first record from FILE0001 and will not get an End-of-File condition until the last record of FILE0003 is processed.

Is This Answer Correct ?    8 Yes 0 No

how to concatenate datasets ..

Answer / suputhru

concatenation is possible up to 16 pds or 255 ps
We can cancatinating diffent files by giving their DSN one after other, all the datasets must be same type.
rules: there should be logical record length must be same
and type recfm is also same
//jobcard
//step1 exec pgm=concat11
//ddname DD dsn=tst.punna.cobol,
// DD dsn=tst.punna.cobol1,
// DD dsn=tst.punna.cobol11,
// DD dsn=tst.punna.cobol211,

Is This Answer Correct ?    2 Yes 0 No

how to concatenate datasets ..

Answer / chowdary

concatenation is possible up to 16 pds or 255 ps
rules: there should be logical record length must be same
and type recfm is also same
//jobcard
//joblib
//dd dsn=tst.punna.cobol,
dsn=tst.punna.cobol1,
like that we need to give up to our requirement

Is This Answer Correct ?    4 Yes 4 No

how to concatenate datasets ..

Answer / shankar

we can also concatenate through disp keyword parameter also..

use iebcopy utility and

sysut1 dd dsn=sample1.pds,disp=(old,pass)
sysut2 dd dsn=sample2.pds,disp=(shr)
sysin dd *
copy indd=sysut1 outdd=sysut2
/*

Is This Answer Correct ?    3 Yes 3 No

how to concatenate datasets ..

Answer / krishnan

we have to use merge command

Is This Answer Correct ?    2 Yes 8 No

Post New Answer

More JCL Interview Questions

oza017.myorg.emp has 100 records ,oza018.myorg.staff has 200 records but 50 are the common records in both files copy all the common records into oza017.myorg.xyz dataset

3 Answers   Cognizant,


What does the keyword DCB mean and what are some of the keywords associated with it?

3 Answers   ITC Infotech,


Explain about Specifying compiler options in the PROCESS (CBL) statement

1 Answers  


When we give TYPERUN = SCAN , what are the syntax errors we get?

5 Answers   Kanbay,


Could you provide an example and its effect OF, Using COND on JOB and EXEC both ?

4 Answers   IBM,






How to execute step2,step1, step3 if step1,2,3 are in order

8 Answers   CSC,


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

10 Answers   IBM,


If I defined space as TRK(10,10) for the one file and lrecl = 4K then tell me how many record will vsam file will contain. will it 1,2,3,4,5 or how many,

3 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 to overide the symbol parameter in the jcl ?

3 Answers   UST,


I found in one of the jcl, gdg version being mentioned as : abc.def.ghi(-0) Can anyone tell me how referring the version as (-0) is different from referring it as (0)

2 Answers  


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

0 Answers  


Categories