can any one give good example for cond 88 level number and for renames pls urgent dudes ?
Answer Posted / mk naidu
WORKING-STORAGE SECTION.
01 EMP-GENDER PIC X.
88 MALE PIC 'M'.
88 FEMALE PIC 'F'.
PROCEDURE DIVISION.
ACCEPT EMP-GENDER.
IF MALE
DISPLAY 'YOU ARE Mr.'.
ELSE
DISPLAY 'YOU ARE Ms.'.
you can find a simple example prog for condition name.
01 EMP-REC.
02 EMP-INFO.
05 EMP-NO PIC X(10) VALUE 'SACHIN'.
05 EMP-NAME PIC X(10) VALUE 'GUNTUR'.
02 EMP-ALLOWANCE.
05 HR PIC 9999 VALUE '1500'.
05 PF PIC 9999 VALUE '1000'.
66 EMP-SAL-ALLOWANCE EMPNO THRU PF.
PROCEDURE DIVISION.
DISPLAY EMP-SAL-ALLOWACE.
o/p:- all details from emp-no to pf will be grouped as
EMP-SAL-ALLOWANCES and displayed.
you can find a simple example for renames also.
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is a report item?
HOw can I get the negative sign while deduct high value from low value
What type of SDLC u followed? Why?
Write a program to enter and display the names of students in a class using the occurs clause.
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
what is amode(24), amode(31), rmode(24) and rmode(any)?
Which Search verb is equivalent to PERFORM…VARYING?
how do you reference the variable unblock file formats from cobol programs
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
Difference between array and sub-script ?
What is the difference between comp and comp-3 usage?
Write the code implementing the perform … varying.
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
In COBOL, what is the different between index and subscript?
How you can characterize tables in cobol?