What will happen if a variable is declared as below..
Explain with an example? Working storage section:-
01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'.
01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'.
What will happen I want Display WS-VARX and WS-VARN?
Answer Posted / saveen
ws-varx will have 12345fghij
ws-varn will have 12345.
pls kindly post ur views. am a beginner.
| Is This Answer Correct ? | 4 Yes | 11 No |
Post New Answer View All Answers
what is the use of outrecord?
What is cobol?
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
how to convert the recors form vsam file to db2 table tru file aid
How arrays can be defined in COBOL?
Which mode is used to operate the sequential file?
What is the difference between Global and External Variables?
What is the difference between comp and comp-3 usage?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
A table has two indexes defined. Which one will be used by the SEARCH?
Write a program to explain size error.
Explain the configuration section of a cobol program with examples of syntax.
Describe the cobol database components?
What is a report item?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?