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


Please Help Members By Posting Answers For Below Questions

What is the maximum length of a single line of jcl?

825


in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

2050


Suppose I have five jobs to do. But I want to hold one?

654


What are some jcl statements that are not allowed in procedures?

722


what JCL Procedures?

697






what is DSN parameter and DISP parameter is used for?

672


How to run cobol program using jcl?

648


Explain the job statement in jcl?

644


What are the 4 fields in dd statement?

739


What are the difference between jcl and jes?

1048


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?

779


Give the syntax of job specifying jcl statement.

636


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?

8666


Explain about ISPF/TSO Commands

1308


Explain dfsort utility?

665