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


Please Help Members By Posting Answers For Below Questions

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?

2018


explain sorting techniques in cobol program?

900


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

866


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

1049


What is the LINKAGE SECTION used in COBOL?

1214


Write a program to enter and display the names of students in a class using the occurs clause.

935


How do u write test cases?

1823


what is search and searchall?what is the diffrence between them?give an best example?

6199


What is static and dynamic call in cobol?

793


Write down the divisions of cobol program?

852


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?

1081


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?

943


What is the difference between next sentence and continue in cobol programing language?

962


For rewrite, why is it mandatory that file needs to be opened?

845


What are the cobol coding sheets?

872