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 |
consider the following PROCEDURE DIVISION entry OPEN EXTEND IN-FILE identify the correct statement a.organization of IN-FILE is sequential and records can be added in the beginning b.organization of IN-FILE is sequential and records can be added in the end c.organization of IN-FILE is indexed and records can be added in the beginning d.organization of IN-FILE is indexed and records can be added in the end
what is the difference between PA & PF keys?
whats the difference between search and search all?
How to delete a front spaces in a data-name/variable in cobol Example:- 01 data-name-1 PIC x(20) value " cobol language". 01 data-name-2 PIC x(20). MOVE data-name-1 to data-name-2. would like the value of data-name-2 is "cobol language".
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
what is the advantage of sync class
If a file has 1000 records.. if i have to replace the first and last characters of the file with another character. how it can be done....
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
What is an in line PERFORM? When would you use it? Anything else to say about it?
how to display comp3 variables reply soon ?
What is diff between vsam and db2?what is advantage of db2 over vsam?which is best suited one?
What is the Purpose of POINTER Phrase in STRING command in COBOL?