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


Please Help Members By Posting Answers For Below Questions

What is the motivation behind coding class parameter in job statement?

684


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

705


How to override loadlib?

1417


Explain how can a jobs execution priority be modified?

736


I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

825






How can a jobs execution priority be modified?

795


What is the purpose of dd?

724


Explain how can the disposition of sysout datasets be set for an entire jobstream?

634


I need exexution process for JCL programs

1847


How to do automated restart when a job abend?

789


Name the parameters which can be used to limit the number of records written to a sysout dataset?

648


How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you

603


if the submitter of a job wants to inform another user about the job completion, how can it be done?

754


Can an individual step be restricted from using all the jobs allowed cpu time?

1005


What do you understand by the term notcat 2 – gs?

751