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


Please Help Members By Posting Answers For Below Questions

how can you check if a file is empty using jcl?

816


Why include statement is used in a jcl?

691


In sms datasets, what is the function of the dd mgmtclas keyword?

865


What is the function of job statement in jcl?

638


what is DD statement is used in JCL?

683






What is the syntax of JCL statement?

700


How do you access an uncatalogued dataset in a jcl?

731


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

750


Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC

862


What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?

1591


Name the statement which can be used to send data to another mvs jes3 node?

608


Explain the function of //jcllib statement?

708


In job processing, what happens in execution stage?

702


Is it possible to define dd statements as you want?

646


can any one plzzzzzz tell the jcl code for creating ps using idcams

10529