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
 

 

DEPENDING ON CLAUSE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
vamseepotti

New User


Joined: 21 Oct 2003
Posts: 45

PostPosted: Thu Mar 11, 2004 10:03 pm    Post subject: DEPENDING ON CLAUSE
Reply with quote

Explain DEPENDING ON CLAUSE in tables WITH FULL EXAMPLE?
Back to top
View user's profile Send private message

mvs_butta

New User


Joined: 23 Dec 2003
Posts: 13

PostPosted: Thu Mar 11, 2004 11:22 pm    Post subject:
Reply with quote

Variable-length tables can be defined using the OCCURS DEPENDING ON clause.

example
01 ws-name-tbl.
02 ws-name-length pic 99.
02 ws-name occurs 0 to 80 times depending on ws-name-length.
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 238
Location: USA

PostPosted: Fri Mar 12, 2004 11:19 am    Post subject:
Reply with quote

Hello vamseepotti,

Have a look at the following link for more details on ODO clause.

Enterprise Cobol Application Programming Guide

Hope this helps,

Regards
Mayuresh Tendulkar
Back to top
View user's profile Send private message
Rao

New User


Joined: 22 Jun 2005
Posts: 2
Location: mumbai new mumbai

PostPosted: Mon Jun 27, 2005 6:09 pm    Post subject:
Reply with quote

hi,

can any one help

what is OCCURS DEPENDING CLAUSE , why it is usefull
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Mon Jun 27, 2005 6:49 pm    Post subject: Re: DEPENDING ON CLAUSE
Reply with quote

Check this link for more info on OCCURS DEPENDING ON Clause...

http://publib.boulder.ibm.com/infocenter/pdthelp/index.jsp?topic=/com.ibm.entcobol3.doc/rlddeoc2.htm

Regards,

Priyesh.
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 Need help on SQL Dynamic WHERE Clause subratarec DB2 12 Sat Jul 16, 2016 3:11 pm
No new posts Add Trailing Zeroes depending upon th... Rohit Umarjikar DFSORT/ICETOOL 3 Fri Oct 23, 2015 1:47 am
No new posts [SQL0029] INTO clause missing from em... HABBIE DB2 2 Fri Sep 04, 2015 3:54 pm
No new posts Multiple OCCURS depending on in same ... muralirajansm COBOL Programming 6 Fri Aug 21, 2015 4:23 pm
No new posts 3-D Table with nested DEPENDING ON Cl... VivekKhanna COBOL Programming 5 Sat Aug 08, 2015 11:18 pm


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