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
Name the parameters which can be used to limit the number of records written to a sysout dataset?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
what is the resolution for sb37 error
What is the purpose of disp parameter?
a dd statement has 2 types of parameters. Name them?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
How to submit jcl through a cobol program?
Is it possible to left uncode disp? If yes, how?
Give the syntax of job specifying jcl statement.
Explain the function of job statement in jcl?
What is the motivation behind coding class parameter in job statement?
Explain in DD statement what is the use of DCB parameter?
Name a few IBM utility programs, and explain its function.