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
 
Where to Create Table in Working Storage or Procedure Div

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
ayyappa_22523
Warnings : 2

New User


Joined: 02 Jun 2005
Posts: 36
Location: Hyderabad

PostPosted: Sat Jun 04, 2005 2:20 pm    Post subject: Where to Create Table in Working Storage or Procedure Div
Reply with quote

hi

i had a question that based on db2

u had every permission on a table . in cobol + db2 prog where u use create table command in working storage section and procedure division.
Back to top
View user's profile Send private message

priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Sun Jun 05, 2005 12:32 am    Post subject:
Reply with quote

Quote:
in working storage section and procedure division.


I prefer Working Storage Section.
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 238
Location: USA

PostPosted: Sun Jun 05, 2005 2:12 am    Post subject:
Reply with quote

ayyappa_22523,

In addition to this,
Go through the syntax of CREATE TABLE at following site

https://aurora.vcu.edu/db2help/db2s0/frame3.htm#sqls0621

Hope this helps,

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

New User


Joined: 27 May 2005
Posts: 21

PostPosted: Mon Jun 06, 2005 5:48 pm    Post subject:
Reply with quote

i will suggest not to create the table in the program, u should create it in SPUFI and then use it in the application program
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Thu Nov 03, 2005 2:49 pm    Post subject: Re: Where to Create Table in Working Storage or Procedure Di
Reply with quote

hi frnd,
the better thing is u can create the table in the procedure division will b the right choice.
Eg.
EXEC SQL
CREATE TABLE TNAME(....
...
) in ..;
END-EXEC.

hope above works
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 Handling result sets in the calling N... Rusikesh DB2 7 Fri Apr 13, 2018 12:25 am
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts Need better approach to create a sort... Vamshi Veludandi DFSORT/ICETOOL 8 Thu Mar 08, 2018 5:59 pm
No new posts COBOL declaration for table Poha Eater DB2 3 Mon Feb 26, 2018 6:58 pm

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