I have two input SORTIN files and We need to create one
SORTOUT file which contains data of both input files. What
is the SortCard for this?. Suppose the length of the both
files are different, then How we do it? Please reply ASAP
Answer Posted / srk
//jobname job .......
//stepname1 exec pgm=sort
//sysprint dd sysout=*
//sortin01 dd dsn=file1,disp=shr
//sortin02 dd dsn=file2,disp=shr
//sortout dd dsn=mergefile,.......
//sysout dd sysout=*
//sysin dd *
merge fields=(starting field,length,merge-sequence,format)
/*
*above is the merge condition
//
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
How to run cobol program using jcl?
Are there any set of rules for the names of the steps used in a job?
Where & How Do You Code Identifier In Jcl?
What is Cataloged Procedures?
What is condition checking in jcl? Is this possible?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
what is the purpose of coding class parameter in job statement?
Which dd parameters are required?
What is the purpose of dd * statement in jcl?
What are steplib and joblib?
Is their any set of rules for dd? Explain.
What parameter directs the output of the job log dataset?
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
Explain the job statement in jcl?