Answer Posted / maveric
IDENTIFICATION DIVISION.
PROGRAM-ID. PGM003.
AUTHOR. PREMYADAV.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 GROUP1.
05 REC1.
10 ELEMENT1 PIC X(3) VALUE 'WWW'.
10 ELEMENT2 PIC X(9) VALUE 'TECH'.
05 REC2.
10 ELEMENT3 PIC X(6) VALUE 'HELP'.
10 ELEMENT4 PIC X(1) VALUE '.'.
10 ELEMENT5 PIC X(3) VALUE 'COM'.
66 GROUP2 RENAMES ELEMENT2 THRU ELEMENT5.
PROCEDURE DIVISION.
10000-MAIN-PARA.
DISPLAY 'RENAME CLAUSE DEPICTED BY ' GROUP2.
STOP RUN.
OUTPUT
RENAME CLAUSE DEPICTED BY TECHHELP.COM
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Which Search verb is equivalent to PERFORM…VARYING?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What is Pic 9v99 Indicates in COBOL?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How you can characterize tables in cobol?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What are the different data types in cobol?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
In COBOL programming, what is PERFORM? What is VARYING?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
Have you used comp and comp-3 in your project? And how?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What are the different rules of SORT operation?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Explain the configuration section of a cobol program with examples of syntax.