I HAVE FOLLOWING DECLARATION.
02. A PIC X(10) VALUE 'XXXXXXXXXX'.
02. B REDEFINES A.
05. C PIC X(3).
05. D PIC X(3).
05. E PIC 9(3).
IN MY PROG, I HAVE
MOVE 1 TO E.
DISPLAY A.
WHAT WILL BE DISPLAYED AS A RESULT OF THIS?
PLEASE EXPLAIN THE ANSWER. THANKS.
Answer Posted / anil
we cannot declare the group item with level no 02 it should
be declared with 01. so the question itself wrong
| Is This Answer Correct ? | 1 Yes | 8 No |
Post New Answer View All Answers
State the various causes of s0c1, s0c5 and s0c7.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is perform what is varying?
Difference between cobol and cobol-ii?
Why occurs cannot be used in 01 level in COBOL?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
) How do u handle errors in BMS macro
What is a SSRANGE and NOSSRANGE?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What are the different rules to perform a Search?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
how do you reference the ksds vsam file formats from cobol programs
What is the default value(s) for an initialize and what keyword allows for an override of the default?