Rename Clause

5 pts.
Tags:
COBOL
COBOL/400
Hi, Can any one please tell me what is Rename Clause and the use of Rename clause? I know only we are using 66 level for Rename clause in Cobol Program. Thanks In advance. Suchi..

Answer Wiki

Thanks. We'll let you know when a new response is added.

-> Renames is used to regroup the elementary items of a group into a new group.
-> Renames should be coded with 66 level number.
-> There should not be any picture class coded for 66 level number.
-> The renames field will be allocated with the same memory space as defined or elementary items of renamed group item.
->66 level number cannot rename another 66 level number or 01 level or 77,88 level numbers.

01 A
02 B PIC X(8).
02 C PIC X(2).
02 D
03 E PIC X(2).
03 F PIC X(4).
02 G PIC X(5).
02 H PIC X94).

66 I RENAMES C THRU F.
DISPLAY I.

here we are regrouping the elements C,E,F into I.
now the memory allocating for I = C+E+F. that is 2+2+4=8.

thanking u,

urs srinivas.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • LBurkett99
    Google "cobol rename" Leo Burkett
    830 pointsBadges:
    report
  • BNRKM
    How to use Rename clause in cobol?
    10 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following