Suppose I have a file with three fields with data in the
following format
1. empid - S9(4) COMP
2. empname - X(20)
3. empsal - S9(5)V(2) COMP-3
If I view this file, it will not be in a readable format.
How to display the empid and empsal fields in a readable
format without using COBOL program? What kind of SORT card
will have to be coded?
Answer Posted / bharathi
We can use a SORT utility in JCL. In the SYSIN DD statement, we need to use the OUTREC FIELDS in the below format,
//SYSIN DD *
SORT FIELDS = COPY
OUTREC FIELDS =(1,4,BI,TO=ZD,
5,20,
21,4,PD,M4)
/*
NOTE - Please refer the below link (Chapter 5) for reformatting records using SORT.
http://publibz.boulder.ibm.com/epubs/pdf/ice1cg30.pdf
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
Can I send output of job to my remote device careerride123?
Name a few IBM utility programs, and explain its function.
What is concatenating?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
What is multithreading in jcl?
what is use of space parameter in dd statement?
Is there any command to check wether the ps file is in sorted order?
Which dd parameters are required?
Explain the job statement in jcl?
Name the statement which can be used to send data to another mvs jes3 node?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
What is the function of dd name parameter with a 2 part structure; audit.report?
hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u
What is the function of the dd avgrec keyword in sms datasets?