Write a JCL by using the below requirement:
File1 =1, File2 =11 and output needs to come as File3 =111?
Answer Posted / msharib
One can try this
//STEP2 EXEC PGM=SORT
//IN1 DD *
1
/*
//IN2 DD *
111
/*
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
JOINKEYS F1=IN1,FIELDS=(1,1,A)
JOINKEYS F2=IN2,FIELDS=(1,1,A)
REFORMAT FIELDS=(F1:1,1,F2:1,3)
OPTION COPY
/*
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Brief description of inline procedure of jcl.
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
What parameter directs the output of the job log dataset?
what is the purpose of coding notify parameter in job statement?
How can the attributes of one sms dataset be copied to another dataset?
What are the parameter we cannot use in procedure?
how do you access an uncataloged dataset in a jcl?
What do you know about jcl?
How can the submitting users racf authority be overridden in a job stream?
How can return codes be tested before execution of a job step?
which utility is used to run a cobol-db2 program?
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.
What is notcat 2 - gs?
What are the rules employed while naming the steps in a job?
What are steplib and joblib?