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 / shailesh soni

Sort card for sorting Comp 3 field is
sort fields = (1,6,PD,A)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the function of job statement in jcl?

858


Matching Logic in Jcl not in cobol.Could any one please answer this question

3911


how do you access an uncataloged dataset in a jcl?

1239


Is condition checking possible in jcl? If yes, how?

986


What are steplib and joblib?

893


How to resolve the error "WER488A JOIN CAPACITY EXCEEDED" I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem? I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem?

8069


What is the use of disp parameter?

843


How can values be passed from the job stream to an executable program?

1092


what are the statements that are not valid to be included in an include statement?

1076


is there any way to execute more than one proc in the same exec statement at the same time..?

2343


Explain how can an in-stream dataset be terminated?

950


Are there any set of rules for the names of the steps used in a job?

844


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

855


what is use of dcb parameter in dd statement?

1004


Explain how can a stopped job be started again?

855