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


Please Help Members By Posting Answers For Below Questions

How to run cobol program using jcl?

737


Are there any set of rules for the names of the steps used in a job?

731


Where & How Do You Code Identifier In Jcl?

800


What is Cataloged Procedures?

794


What is condition checking in jcl? Is this possible?

706






What methodology can be adapted to transfer data to a program that is coded using the exec statement?

706


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

916


what is the purpose of coding class parameter in job statement?

822


Which dd parameters are required?

802


What is the purpose of dd * statement in jcl?

901


What are steplib and joblib?

821


Is their any set of rules for dd? Explain.

754


What parameter directs the output of the job log dataset?

864


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.

814


Explain the job statement in jcl?

741