Please go thru the below points and let me know how to code
this.
1. Sort the input dataset for the condition : Starting
position is 37,length of the field is 13 based on character
and in the ascending order , starting from position 25
length of 12 ,character and in the ascending order. Use a
temporary dataset to hold the sorted file.
2. Use the temporary file created in the above step as the
input for the next step. The next step is to execute a
program and produce an output file. Use the temporary file
created in the above as work file 1 and the output of the
file to be created in this step work file 2.Also, pass a
parameter to the program that is to be executed in this
step. The parameter should have the current date in
YYYYMMDD format.
For the sake of convenience, you can use the below
Job Name : Sample1
Input DSN : PCABDT11.CABD.TEST.INPUT
Temporary DSN : Sort1
Output DSN : PCABDT11.CABD.TEST.OUTPUT
Program Name : SAMPLE
Thanks in Advance for your response.
Answer Posted / praveen kumar
Anju,,
IN your JCL, where are you using the wrkfile1(step1 output
file) in step2..
does it make any sense...
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the job statement in jcl?
How do you submit a job for execution?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
what is the resolution for sb37 error
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
What are the difference between jcl and jes?
What is the purpose of dd dummy statement?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
Explain about LMFREE�free data set from its association with data ID
Differentiate between the joblib and the steplib statements?
What is multithreading in jcl?
How to pass the parameter in parm using linkage section ? (syntax)?
what operation is performed by job statement?
what is use of dsn parameter in dd statement?
A dd statement consists of 4 fields. Name them?