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 / reena
The Redefined clause cannot contain a Value Clause.
i.e. it should only be WS-VARN REDEFINES WS-VARX PIC 9(5).
| Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
how can i see junk values in dclgen or in hostvariable of comp ?
What is the utilization of copybook in cobol?
Why occurs cannot be used in 01 level in COBOL?
How do you reference the following file formats from cobol programs?
i want a program using by if, evaluate , string, unstring, perform, occurs?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What is the compute verb? How is it used?
What is amode(31)
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What rules are to be followed while using the corresponding options?
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 are the next sentence and continue different from each other?
How to use the same COBOL program in Batch and CICS on lines? explain with an example