how to concatenate datasets

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is job control language?

611


What is jcl in mainframe?

690


Name the statement which can be used to send data to another mvs jes3 node?

604


what happens in execution stage in job processing?

655


Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

743






What do you understand by the terms: joblib and steplib?

626


What are s0c1, s0c4, s0c5, s0c7 and socb?

705


How to override loadlib?

1423


Give the syntax of job specifying jcl statement.

640


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

747


How do you overcome this limitation ?

698


what is the JCL statement consists of?

698


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

1666


What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?

1807


What is the purpose of dd * statement in jcl?

812