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

Can we redefines and occurs together?


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

New User


Joined: 17 Jun 2006
Posts: 4

PostPosted: Tue Oct 23, 2007 4:22 pm
Reply with quote

Hi,
Can we use redefines and occurs clause together?
Thanks
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Oct 23, 2007 5:03 pm
Reply with quote

yes, with some restrictions, which are laid out in the manual.
Back to top
View user's profile Send private message
bvishant
Warnings : 1

New User


Joined: 17 Jun 2006
Posts: 4

PostPosted: Tue Oct 23, 2007 5:50 pm
Reply with quote

An example will be of great help!!!
Back to top
View user's profile Send private message
rpuhlman

New User


Joined: 11 Jun 2007
Posts: 80
Location: Columbus, Ohio

PostPosted: Tue Oct 23, 2007 6:45 pm
Reply with quote

01 WS-TABLE.
03 WS-ENTRIES PIC X(100).
03 WS-ENTRY REDEFINES WS-ENTRIES OCCURS 100 TIMES
PIC X(01).
Back to top
View user's profile Send private message
bvishant
Warnings : 1

New User


Joined: 17 Jun 2006
Posts: 4

PostPosted: Wed Oct 24, 2007 9:20 am
Reply with quote

thanks!!!
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 Updating a 1 byte thats in occurs mul... DFSORT/ICETOOL 6
No new posts Cobol redefines for Signed pictured c... COBOL Programming 4
This topic is locked: you cannot edit posts or make replies. SYMNAMES using COBDFSYM for OCCURS cl... CLIST & REXX 12
No new posts Multiple OCCURS depending on in same ... COBOL Programming 6
No new posts Another redefines in COBOL COBOL Programming 1
Search our Forums:

Back to Top