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 / vikas pujar
1) Sortcard to merge two files will be
//Sysin dd *
Sort fields=copy
/*
2) When try two merge two files using sort, first thing to see is they are of same length. If they are not, change the length of one equal to other in one more step which come prior to sort step.
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Is acct parameter mandatory?
how do you access an uncataloged dataset in a jcl?
Is condition checking possible in jcl? If yes, how?
Can we use DISP=SHR in output file in JCL
Is it possible to left uncode disp? If yes, how?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
What dd statement is used to supply the name of a dataset?
How can values be passed from the job stream to an executable program?
what is DD statement is used in JCL?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
What is the use of disp parameter?
Explain the purpose of dd * statement in jcl?
What is the purpose of dd?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
how can you check if a file is empty using jcl?