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 / mr.perfect
i have compiled and run it , it is workign fine.
the output format is
B1:ABCDEFGHIJ
B2:KLMNOPQRES
B3:TUVWXYZ
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you differentiate between cobol and cobol-ii?
What are the different open modes available in cobol?
What is rmode(any) ?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
Are you comfortable in cobol or jcl?
Write the code to count the sum of n natural numbers.
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
how to convert the recors form vsam file to db2 table tru file aid
What are literals?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
how to move the records from file to array table. give with code example
what is amode(24), amode(31), rmode(24) and rmode(any)?
) How do u handle errors in BMS macro?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?