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
 

 

Error in SPUFI: ',' not a valid symbol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
viv
Currently Banned

New User


Joined: 31 Oct 2006
Posts: 4

PostPosted: Tue Jan 23, 2007 6:59 pm    Post subject: Error in SPUFI: ',' not a valid symbol
Reply with quote

when i try to insert multiple rows using the SPUFI am getting some error ',' not valid symbol or something.

say i insert like this
insert into t1 (a,b,c,d) values (1,2,3,4), (5,6,7,8);
I also tried
insert into t1 (a,b,c,d) values ((1,2,3,4), (5,6,7,8));
insert into t1 (a,b,c,d) for 2 rows values (1,2,3,4), (5,6,7,8);
(Here it gave 2 as some error)

So is there any way to insert multiple rows with insert in SPUFI?

In embedded SQL i think this is possible easily...!!!
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Tue Jan 23, 2007 7:08 pm    Post subject:
Reply with quote

Does this apply?
Quote:
INSERT
There are two forms of this statement:
.. The INSERT via VALUES is used to insert a single row into the table or view using the values provided or referenced.
.. The INSERT via SELECT is used to insert one or more rows into the table or view using values from other tables, or views, or both.
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Tue Jan 23, 2007 7:35 pm    Post subject: Re: hi db2 query
Reply with quote

viv,

you need to make this into two inserts.

insert into t1 (a,b,c,d) values (1,2,3,4);
insert into t1 (a,b,c,d) values (5,6,7,8);
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 OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm


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