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
Explain how you can characterize tables in cobol?
What is amode(31)
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How do you reference the following file formats from cobol programs?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
Explain about different table spaces.
What is the difference between structured cobol programming and object alternativelyiented cobol?
IF I mention stop run in CICS what happens?
what happens if parmparameter passes zero bytes to the program
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..