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 / manikandan
yes bramar ur s correct...
s9(10) comp-3 allocate 6 bytes..so sort fields will be
sort fields=(1,6,pd,a)
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is the maximum length of a single line of jcl?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
Suppose I have five jobs to do. But I want to hold one?
What are some jcl statements that are not allowed in procedures?
what JCL Procedures?
what is DSN parameter and DISP parameter is used for?
How to run cobol program using jcl?
Explain the job statement in jcl?
What are the 4 fields in dd statement?
What are the difference between jcl and jes?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
Give the syntax of job specifying jcl statement.
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
Explain about ISPF/TSO Commands
Explain dfsort utility?