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
 

 

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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm
No new posts GETMAIN / FREEMAIN versus STORAGE OBT... steve-myers PL/I & Assembler 8 Wed Feb 01, 2017 1:45 am


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