How to declare if emp-name = AAAAA""BBB in working-storage
section. After display emp-name should print like AAAAA""BB

Answer Posted / reena

IDENTIFICATION DIVISION.
PROGRAM-ID.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 VAR1 PIC X(10) VALUE 'AAAAA""BBB'.
01 VAR2 REDEFINES VAR1 PIC X(9).

PROCEDURE DIVISION.
0000-MAIN.
DISPLAY VAR2.
STOP RUN.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2086


What are the different types of condition in cobol and write their forms.

726


What is the local-storage section?

741


Name the divisions, which are available in a cobol program?

775


How to know whether the module is dynamical or statistical?

724






what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8375


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17228


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2092


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2817


Difference between array and sub-script ?

1228


how to move the records from file to array table. give with code example

2292


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

818


How do you reference the fixed block file formats from cobol programs

777


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1669


How to use the same COBOL program in Batch and CICS on lines? explain with an example

1981