Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Can we redefines and occurs together?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Can we redefines and occurs together?
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    Post subject:
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    Post subject: can you please let me know the restrictions??
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    Post subject:
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    Post subject:
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    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 Multiple OCCURS depending on in same ... muralirajansm COBOL Programming 6 Fri Aug 21, 2015 4:23 pm
No new posts Another redefines in COBOL RahulG31 COBOL Programming 1 Fri Mar 20, 2015 4:09 am
No new posts Syncsort - help needed with ICETOOL O... ramas.kamal SYNCSORT 2 Wed Apr 16, 2014 4:17 pm
No new posts WHY SQLCODE -508 occurs if COMMIT bet... dejunzhu DB2 5 Fri Nov 08, 2013 7:30 am
No new posts Reading a PS file when abend occurs Kmr.deepakcs COBOL Programming 15 Wed Oct 30, 2013 12:17 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us