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

DEPENDING ON CLAUSE


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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: 237
Location: USA

PostPosted: Fri Mar 12, 2004 11:19 am
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
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: 1448
Location: Chicago, IL

PostPosted: Mon Jun 27, 2005 6:49 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts To search DB2 table based on Conditio... DB2 1
No new posts How can I select certain file dependi... JCL & VSAM 12
This topic is locked: you cannot edit posts or make replies. How can I select certain file dependi... Compuware & Other Tools 1
No new posts NOT IN clause in COBOL pgm COBOL Programming 8
No new posts SUSBSCRIPT WITH SIGN IN PIC CLAUSE COBOL Programming 3
Search our Forums:

Back to Top