If a field is declared as a comp-3 field and if we want to
sort a dataset based on this field, then how will the sort
card be???
e.g- if we want to sort by a field which is defined as a
PIC X(5) then we will mention - sort fields=(1,5,ch,a).
Likewise if a field is defined as PIC S9(10)COMP-3 then in
this case how will the sort field be defined (because in
this case a sign is also involved)???
Answer Posted / albert
We have to specify the sort card like below.
Sort fields=(1,5,PD,A) -> PD is packed decimal
| Is This Answer Correct ? | 12 Yes | 6 No |
Post New Answer View All Answers
Explain the jcl exec statement?
What parameter of the job statement is used to limit the cpu time consumed by the job?
Explain the function of //jcllib statement?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
What are the difference between jcl and jes?
How to alter the parameters for the existing gdg?
Differentiate between the joblib and the steplib statements?
what is the purpose of coding notify parameter in job statement?
Is it possible to define dd statements as you want?
Explain how can a stopped job be started again?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
what is the JCL statement consists of?
what sort card you will use to copy the data from one dataset to another dataset?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
What are some jcl statements that are not allowed in procedures?