Suppose I have a file with three fields with data in the
following format
1. empid - S9(4) COMP
2. empname - X(20)
3. empsal - S9(5)V(2) COMP-3
If I view this file, it will not be in a readable format.
How to display the empid and empsal fields in a readable
format without using COBOL program? What kind of SORT card
will have to be coded?
Answer Posted / santhosh
That answer was correct. Except that the byte position for the first COMP field will be 2. Not 4. It was a great answer.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
how to do automated restart when a job abends?
What is the function of a dd statement?
What dd statement is used to supply the name of a dataset?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
Why block size is multiple of lrecl in jcl?
What are the rules employed while naming the steps in a job?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
what is use of disp parameter in dd statement?
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?
which parameter is used to check the syntax of a jcl without executing it?
List the various advantages of using jcl language?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
what is use of dsn parameter in dd statement?
What is the function of dd disp parameter?