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

Answer Posted / varun v

yes you can..use REDEFINES for the same purpose.

Working storage section:-
01 WS-VARX PIC X(9) VALUE SPACES.
01 WS-VARN REDEFINES WS-VARX PIC 9(9).

Now you can move X(9) variable to WS-VARX.Eventually it is
moved to the 9(9) variable WS-VARN.

Is This Answer Correct ?    12 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If you are current on the owner of a set, what is the difference between obtain next and obtain first?

831


What guidelines should be followed to write a structured cobol prgm?

855


how do you reference the esds vsam file formats from cobol programs

858


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

846


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

867






Can a Search can be done on a table with or without Index?

1034


HOw can I get the negative sign while deduct high value from low value

1993


What is a scope terminator give example?

819


What are the various section in data division and briefly explain them.

902


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

929


How do you define a variable of comp-1 and comp-2?

892


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2276


When is inspect verb is used in cobol?

900


What is the LINKAGE SECTION used in COBOL?

1171


what is the use of outrecord?

1959