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
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
Name the divisions, which are available in a cobol program?
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
Which mode is used to operate the sequential file?
What is the problem of ordered sequential files access?
For rewrite, why is it mandatory that file needs to be opened?
When is inspect verb is used in cobol?
what is amode(24), amode(31), rmode(24) and rmode(any)?
What are literals?
How do define dynamic array in cobol.
What is report-item in COBOL?
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 ?
explain sorting techniques in cobol program?
What is the difference between binary search and sequential search?
What is the difference between goback, stop run and exit program in cobol?