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

Where to Create Table in Working Storage or Procedure Div


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

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

ayyappa_22523,

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

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
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: 677
Location: NJ

PostPosted: Thu Nov 03, 2005 2:49 pm
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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Sections not working as expected DFSORT/ICETOOL 3
No new posts count contained values of several col... DB2 5
No new posts CICS UCTRAN=NO not working, need syst... CICS 3
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Create a specific record/file based o... SYNCSORT 8
Search our Forums:


Back to Top