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
 
COBOL declaration for table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Poha Eater

New User


Joined: 31 Aug 2016
Posts: 49
Location: India

PostPosted: Mon Feb 26, 2018 6:58 pm    Post subject: COBOL declaration for table
Reply with quote

Hi All,

Can we declare variables for a table directly in COBOL program instead of declaring via DCLGEN ?
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2153
Location: UK

PostPosted: Mon Feb 26, 2018 8:00 pm    Post subject:
Reply with quote

What happened when you tried?
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 2118
Location: NY,USA

PostPosted: Mon Feb 26, 2018 9:16 pm    Post subject:
Reply with quote

Why not? it is just a variable, right. Go ahead and do it.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1199
Location: Bangalore,India

PostPosted: Wed Apr 18, 2018 1:54 pm    Post subject:
Reply with quote

Yes why Not but instead of using that a copyboook , you need to define them all the packages/code which uses this table so lot of redundant stuff right ?
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Can we pass cobol pointer to cobol-db... rohanthengal DB2 4 Tue Mar 19, 2019 1:04 pm
No new posts Call DB2 user defined function from C... Ziko13 DB2 5 Thu Mar 14, 2019 4:46 pm
No new posts z/VM z/VSE Get CPU-time of a COBOL Ba... Andi1982 COBOL Programming 2 Mon Mar 11, 2019 3:36 pm
No new posts COBOL Table Question GAPX1 COBOL Programming 3 Thu Mar 07, 2019 9:48 pm
No new posts General Query on DB2 table design subratarec DB2 3 Thu Feb 14, 2019 12:49 pm

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