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
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
explain sorting techniques in cobol program?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What is the LINKAGE SECTION used in COBOL?
Write a program to enter and display the names of students in a class using the occurs clause.
How do u write test cases?
what is search and searchall?what is the diffrence between them?give an best example?
What is static and dynamic call in cobol?
Write down the divisions of cobol program?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What is the difference between next sentence and continue in cobol programing language?
For rewrite, why is it mandatory that file needs to be opened?
What are the cobol coding sheets?