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

Answer Posted / varun v

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

Move X(9) to 9(9):-

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.

Similarly viceversa..

Is This Answer Correct ?    18 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Discuss about changing dataset name in proc.

763


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

676


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1614


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

666


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1960






There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

934


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1908


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

825


What are the different open modes available in cobol?

722


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

681


What are the pertinent COBOL commands?

2626


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

1791


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

691


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

648