View previous topic :: View next topic
|
Author |
Message |
ManojLenkaMainframes
New User
Joined: 22 May 2008 Posts: 14 Location: Chennai,India
|
|
|
|
Hi All,
01 Rec1.
02 A PIC 9(10).
02 B PIC 9(10).
02 C PIC 9(10).
01 Rec2.
02 X PIC 9(10).
02 Y PIC 9(10).
02 Z PIC 9(10).
66 var-1 RENAMES B thru Y.
Thanks
Manoj |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
no |
|
Back to top |
|
|
ManojLenkaMainframes
New User
Joined: 22 May 2008 Posts: 14 Location: Chennai,India
|
|
|
|
Thanks Dick,
Can you please tell me why??? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
ManojLenka,
no, I think it would do you good to familiarize yourself with a COBOL manual. Links at top of page. |
|
Back to top |
|
|
amar_401
New User
Joined: 20 Sep 2006 Posts: 7
|
|
|
|
Rename Clause 66 should start immediately after the variable you need to be Renamed. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
That will not work for the example posted. . .
Suggest you also review the cobol manual available via the IBM Manuals link at the top of the page. . . |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
RENAMES is a facility in COBOL which you should NOT be using anymore.
You will get many of your colleagues very irritated at you.
Just because you CAN use it, doesn't mean you SHOULD use it.
Regards, |
|
Back to top |
|
|
|