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 / muttiah
Let's discuss what are all formats we have in sort
X/A - CH
Comp - BI
Comp-3- PD
9 - ZD/CH
So, Here we need to calculate how many bytes does the field
S9(10)comp-3 occupies.
10/2 + 1 = 5 + 1 = 6 bytes
Say field start's @ position 10then the sort command would
be like this..
Sort fields=(10,6,PD,A/D)
Hope this clarifies
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What dd statement is used to supply the name of a dataset?
What happens if both JOBLIB & STEPLIB is specified ?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
how would you create a temporary dataset? And where will you use them?
Give the syntax of job specifying jcl statement.
what is use of disp parameter in dd statement?
Is condition checking possible in jcl?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
Is their any limit for data sets?
IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C
can any one plzzzzzz tell the jcl code for creating ps using idcams
What is the difference between run mode and addressing mode?
which parameter is used to check the syntax of a jcl without executing it?
What is the motivation behind coding class parameter in job statement?
What are the utility programs in jcl?