i have the following varibles in the working storage
05 ws-A PIC X(30)
VALUE 'ABCDEFGHIJKLMNOPQRESTUVWXYZ '
05 WS-B REDEFINES WS-A
10 WS-B1 PIC X(10).
10 WS-B2 PIC 9(10).
10 WS-B3 PIC X(10).
If I Display B1, B2 and B3 respectively, what is the value
displayed in B2
Answer Posted / anand
isn't this a compilation error? A value clause cannot be
associated with a variable that is redefined.
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is the compute verb? How is it used?
What are various search techniques in cobol? Explain.
How to remove 2 duplicate records and copy only one using job control language?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
How do you differentiate between cobol and cobol-ii?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
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
What is Pic 9v99 Indicates in COBOL?
What is report-item in COBOL?
i need a small 3d program using inline and outline.