how to pass 100 to s9(4) how r they inserted ?
Answers were Sorted based on User's Feedback
Answer / chandru
Numeric data are right justified. So that the value inserted
will be 0100.
| Is This Answer Correct ? | 11 Yes | 0 No |
Answer / rags
we can pass 100 to S9(4) field, S9(4) can store a value
upto 9999.
If the field is S9(4) Comp then it uses 2 bytes
If the field is S9(4) Comp-3, it uses 3 bytes.
This is a Special scenario: here Comp is prefered over comp-
3 due to less space it occupy ( though Comp-3 generally
occupies less space than comp fields)
| Is This Answer Correct ? | 8 Yes | 0 No |
what is the difference between COBOL2 AND COBOL390?
What is the difference between static call & Dynamic call?
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
There is a production file which has millions of records in it.The program that uses it ends up with an SOC7 abend.It is sure that the abend is due to some invalid data in the file.Is there any way to debugg the SOC7 abend with out giving displays? I need the record which is cause for the abend.
How do you differentiate between cobol and cobol-ii?
what is sysncpoint?
How do u sort the table for Search ALL? Is it only using ASCENDING KEY IS statement in occurs clause? If the data is input in non ascending order, will the ASC KEY IS automatically sort the data? or will it throw compile time error?
How do you come out of an EVALUATE statement?
What does the initialize statement do ?
how to crack cts interview apps? NOVEMBER 21 2010
i declare a Table as OCCURS 2000 TIMES.If the input file has more than 2000 records will the COBOL program fail?
Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?