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
Explain about LMQUERY�give a dialog information about a data set
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
What are steplib and joblib? What for they are used?
Are there any set of rules for the names of the steps used in a job?
What is catelog procedure and how many catelog procedure to use in one job?
Does jcl support automatic restart?
Explain how can an in-stream dataset be terminated?
What happens if both JOBLIB & STEPLIB is specified ?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
what is the purpose of coding class parameter in job statement?
What is the function of job statement in jcl?
How do you create a temporary dataset?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
What is the function of dd name parameter with a 2 part structure; audit.report?
write a jcl to execute a job by 7:00 am on jan 20,1986?