There are two input sorting files and there is a need to
create one sort out file which contains data of both input
files. What is the sort card for this. Write a sample JCL
for this using a control card?
Answer Posted / y@$w@nth
We can go for concatenation of datasets approach for this
to do
//userid01 job .....
//stp1 exec pgm=sort
//sortin dd dsn=userid01.test.input1,disp=shr
// dd dsn=userid01.test.input2,disp=shr
//sortout dd dsn=userid01.test.input,disp=shr
//sysout dd sysout=*
//sysin dd *
sort fields=copy
/*
//
In the above case the statement
sortin dd dsn=userid01.test.input1,disp=shr
// dd dsn=userid01.test.input2,disp=shr
means concatenation of two datasets as one.....
Let me know if i am wrong
yaswanth.pyrs@gmail.com
Cheers..
Y@$w@nth..
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
what is use of disp parameter in dd statement?
Is their any set of rules for dd? Explain.
Is condition checking possible in jcl?
what are the types of abends that occur on job failure? And explain the possible causes of these
Which statement is used to identify the private libraries in job?
What is timing concept in mainframe?
what is use of space parameter in dd statement?
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) ?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
what is the purpose of coding notify parameter in job statement?
What is catelog procedure and how many catelog procedure to use in one job?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
Is it possible to left uncode disp?
How does jcl act on a cobol code?