IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can the Rename span across two 01 labels like below


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ManojLenkaMainframes

New User


Joined: 22 May 2008
Posts: 14
Location: Chennai,India

PostPosted: Fri Feb 13, 2009 3:09 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Feb 13, 2009 3:14 pm
Reply with quote

no
Back to top
View user's profile Send private message
ManojLenkaMainframes

New User


Joined: 22 May 2008
Posts: 14
Location: Chennai,India

PostPosted: Fri Feb 13, 2009 3:18 pm
Reply with quote

Thanks Dick,

Can you please tell me why???
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Feb 13, 2009 3:30 pm
Reply with quote

ManojLenka,

no, I think it would do you good to familiarize yourself with a COBOL manual. Links at top of page.
Back to top
View user's profile Send private message
amar_401

New User


Joined: 20 Sep 2006
Posts: 7

PostPosted: Sat Feb 14, 2009 1:23 am
Reply with quote

Rename Clause 66 should start immediately after the variable you need to be Renamed.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Feb 14, 2009 1:48 am
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Sat Feb 14, 2009 2:55 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Rename dasd IBM Tools 11
No new posts Error during restore rename All Other Mainframe Topics 2
No new posts Generic rename by pattern‏ CLIST & REXX 6
No new posts IEHPROGM - HOW TO RENAME A PDS ? IBM Tools 7
No new posts How to use REXX to rename list of VSA... CLIST & REXX 10
Search our Forums:

Back to Top