Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Can the Rename span across two 01 labels like below

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Can the Rename span across two 01 labels like below
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: 6968
Location: porcelain throne

PostPosted: Fri Feb 13, 2009 3:14 pm    Post subject:
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    Post subject: Reply to: Can the Rename span across two 01 labels like belo
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: 6968
Location: porcelain throne

PostPosted: Fri Feb 13, 2009 3:30 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Sat Feb 14, 2009 1:48 am    Post subject:
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: 2504
Location: Atlanta, Georgia, USA

PostPosted: Sat Feb 14, 2009 2:55 am    Post subject: Reply to: Can the Rename span across two 01 labels like belo
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Generic rename by pattern‏ Steve Coalbran CLIST & REXX 6 Mon May 30, 2016 9:34 pm
No new posts IEHPROGM - HOW TO RENAME A PDS ? WagnerBil IBM Tools 7 Wed Aug 12, 2015 6:08 pm
No new posts How to use REXX to rename list of VSA... jackzhang75 CLIST & REXX 10 Wed Jun 03, 2015 11:25 pm
No new posts Can i user rexx to rename sequential ... jackzhang75 CLIST & REXX 3 Sat Nov 15, 2014 1:11 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us