What will happen if we move SPACES to numeric field and
ZEROES to alphabetic field?

Answers were Sorted based on User's Feedback



What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?..

Answer / varun v

1) Move Spaces to Numeric field:

Here program would give compilation error saying Spaces
to Numeric integer did not follow the "MOVE" statement
compatibility rules.

2) Move Zeroes to Alphabetic field:

Would work fine with Movement of Zeroes to the
Alphabetic field.

Is This Answer Correct ?    4 Yes 5 No

What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?..

Answer / krishna chaitanya

soc7 may occur

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

01 a pic s9(5) value -12345, if we disply a , the sign will overpunched with last digit but i need to get the miuns sign in the result?

7 Answers  


What is the difference between comp and comp-3?

0 Answers  


Program A calls program B. Will the working storage variables declared in program B be initialized every time it is called by program A or will the values be retained until the end of program A?

7 Answers  


Syntax for JCLLIB & JOBLIB???

1 Answers  


Name the divisions in a COBOL program ?

7 Answers  






consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayedafter the PERFORM is over?assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above since there is a syntex error

4 Answers   TCS,


What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?

7 Answers   T systems,


I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage section, I am receiving values with pic x(10) and pic x(11). Will my program fail? will it be compile error or run time abend?

3 Answers  


what is sync clause?

2 Answers   DELL,


How to read the last 100 records from a COBOL file. The file contains N number of records.

11 Answers   IBM,


88 class is used for

5 Answers   CTS, EDS,


Can a REDEFINES clause be used along with an OCCURS clause? if yes, 01 WS-TABLE. 03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'. 03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you expect? if no,why?

6 Answers  


Categories