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 / asish
Yes Bramar is right.
The sort card should be like this
sort fields=(1,6,PD,A)
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
what are JCLLIB and STEPLIB in JCL?
How can the disposition of sysout datasets be set for an entire jobstream?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
Explain about LMFREE�free data set from its association with data ID
Is it possible to code instream data in a PROC?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
How can values be passed from the job stream to an executable program?
What is catelog procedure and how many catelog procedure to use in one job?
Is their any limit for data sets?
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) ?
What are the parameters that are used in creating a gdg?
what operation is performed by job statement?
What is the format of comment statement?
Is it possible to left uncode disp? If yes, how?