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 to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
What are the different rules for performing sort operation?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
Whats the difference between search & search ALL?
What are the different rules to perform a Search?
Name the divisions, which are available in a cobol program?
What is the utilization of copybook in cobol?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Which mode is used to operate the sequential file?
What do you understand by psb and acb?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
i want a program using by if, evaluate , string, unstring, perform, occurs?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com