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
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.
What are the different types of condition in cobol and write their forms.
What is the local-storage section?
Name the divisions, which are available in a cobol program?
How to know whether the module is dynamical or statistical?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
what is s000 u4087 error? please give the all error codes in cobol,jcl.
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Difference between array and sub-script ?
how to move the records from file to array table. give with code example
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How do you reference the fixed block file formats from cobol programs
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
How to use the same COBOL program in Batch and CICS on lines? explain with an example