Can we MOVE X(9) to 9(9) OR 9(9) to X(9)? If yes what are
the ways for doing this?

Answers were Sorted based on User's Feedback



Can we MOVE X(9) to 9(9) OR 9(9) to X(9)? If yes what are the ways for doing this?..

Answer / sriharsha

only Numeric part of X(9) can be moved to 9(9)....
but whole 9(9) value can be moved to 9(9).....

Is This Answer Correct ?    2 Yes 3 No

Can we MOVE X(9) to 9(9) OR 9(9) to X(9)? If yes what are the ways for doing this?..

Answer / guatm

Alpha Numeric item can be moved to Numeric or numeric-edited item

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

How to delete a front spaces in a data-name/variable in cobol Example:- 01 data-name-1 PIC x(20) value " cobol language". 01 data-name-2 PIC x(20). MOVE data-name-1 to data-name-2. would like the value of data-name-2 is "cobol language".

3 Answers  


Hi Guys, I have faced one interview question if I have requirement to add 5 new columns to existing table what are prerequisite do i need to take.

1 Answers  


1)what is the maximum limit for occurs? Eg: 01 A PIC X(10) OCCURS N TIME. What is the max value for N?

11 Answers   Wipro,


What is the maximum data length for Numeric DataType ?

3 Answers   Cap Gemini,


i want to learn mainframes. i completed MCA ,whats the future of mainframes

5 Answers  






perform I from 0 by 1 until I=5?How maney times it will executes

8 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  


what are the paramater we cannot use in procedure?how many instream we can write in single jcl?can we call instream to catalog and ctalog to instream?

2 Answers   Satyam,


01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.

11 Answers   FirstApex, NIIT,


If we use GO BACK instead of STOP RUN in cobol?

2 Answers   Temenos,


I had 100 records and i want to execute last three records by using cobol programming?what will be coding?

4 Answers   IBM,


In CICS/VSAM every file that is accessed should be defined in FCT. we have CICS READ, WRITE, BROWSE commands for VSAM files. How does it work with DB2 tables. It know it has to do with the plan. Please expain with examples.

1 Answers  


Categories