I encountered an error when I move spaces to a numeric
field?What should I do to move spaces on that field?help
please.
Answer Posted / nitesh sethi
Use option BLANK WHEN ZERO for that field and initialize
that field.
Initalize will move zeroes to that field and declarion of
that field with BLANK WHEN ZERO will not have zeroes in
that field.
Directly moving spaces to a numeric field is not possible
as it will result in SOC7 Abend
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can you get the ksds file records into your cobol program?
Write a program to enter and display the names of students in a class using the occurs clause.
what is search and searchall?what is the diffrence between them?give an best example?
What are the different open modes available in cobol?
How many bytes S(8) comp field occupy and its maximum value?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
what is difference between cobol and cobol/400
What is redefines clause in COBOL?
What rules are to be followed while using the corresponding options?
What is Pic 9v99 Indicates in COBOL?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
State the various causes of s0c1, s0c5 and s0c7.
Which is not true about evaluate statement