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

What is inspect in cobol ?

801


What are the access modes of START statement?

719


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

675


What are the different open modes available in cobol?

719


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

673






What are the pertinent COBOL

2045


What are the different types of condition in cobol and write their forms.

658


how do you reference the printer file formats from cobol programs

662


What is the problem of ordered sequential files access?

699


What is the Purpose of Pointer in the string?

643


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1956


How to remove 2 duplicate records and copy only one using job control language?

753


Difference between cobol and cobol-ii?

704


What are declaratives and what are their uses in cobol?

714


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2112