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 / guest

IF I-field-name EQUAL ZEROES
MOVE SPACES TO O-field-name
END-IF

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the configuration section of a cobol program with examples of syntax.

867


What is the difference between PIC 9.99 and PIC9v99?

1036


What are different data types in cobol?

914


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

841


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1885


Discuss about changing dataset name in proc.

959


Name some of the examples of COBOl 11?

2883


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

868


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

7300


Which division and paragraphs are mandatory for a COBOL program?

923


What are the different open modes available in cobol?

942


What is rmode(24)

902


Name the divisions, which are available in a cobol program?

927


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

860


What rules are to be followed while using the corresponding options?

833