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 the default value(s) for an initialize? What keyword will allow for an override of the default?

646


Name the divisions, which are available in a cobol program?

675


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1919


Which mode is used to operate the sequential file?

654


What is the problem of ordered sequential files access?

690






For rewrite, why is it mandatory that file needs to be opened?

613


When is inspect verb is used in cobol?

666


what is amode(24), amode(31), rmode(24) and rmode(any)?

686


What are literals?

622


How do define dynamic array in cobol.

661


What is report-item in COBOL?

702


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1862


explain sorting techniques in cobol program?

680


What is the difference between binary search and sequential search?

632


What is the difference between goback, stop run and exit program in cobol?

914