View previous topic :: View next topic |
Author |
Message |
satyenderd Beginner
Joined: 26 Aug 2005 Posts: 144 Topics: 73
|
Posted: Mon Jul 14, 2008 11:51 am Post subject: CREATE TABLE AS |
|
|
Hi
I am getting the following error while creating a table as an existing table, Could anyone of you pls help me. Thanks in Advance.
CREATE TABLE TABLE02 00010023
AS (SELECT * FROM creator.tablename);
---------+---------+---------+---------+---------+---------+---------+---------+
DSNT408I SQLCODE = -104, ERROR: ILLEGAL SYMBOL "<END-OF-STATEMENT>". SOME
SYMBOLS THAT MIGHT BE LEGAL ARE: DATA WITH <IDENTIFIER>
DSNT418I SQLSTATE = 42601 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNHPARS SQL PROCEDURE DETECTING ERROR
DSNT416I SQLERRD = 502 0 0 -1 104 0 SQL DIAGNOSTIC INFORMATION
DSNT416I SQLERRD = X'000001F6' X'00000000' X'00000000' X'FFFFFFFF'
X'00000068' X'00000000' SQL DIAGNOSTIC INFORMATION _________________ Satya |
|
Back to top |
|
|
satyenderd Beginner
Joined: 26 Aug 2005 Posts: 144 Topics: 73
|
Posted: Mon Jul 14, 2008 11:59 am Post subject: correction ... |
|
|
CREATE TABLE TABLE02
AS (SELECT * FROM CREATOR.TABLE); _________________ Satya |
|
Back to top |
|
|
jsharon1248 Intermediate
Joined: 08 Aug 2007 Posts: 291 Topics: 2 Location: Chicago
|
Posted: Mon Jul 14, 2008 12:46 pm Post subject: |
|
|
What tool are you using? SPUFI? QMF? CLP? Did you try this with the entire CREATE statement on one line? |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Mon Jul 14, 2008 1:01 pm Post subject: |
|
|
Quote: | CREATE TABLE TABLE02 00010023
AS (SELECT * FROM creator.tablename); |
You have garbage values(line numbers with num on) in col 72 thru 80. get rid of them and re run your query
type at the command prompt and then press enter. Then type
[code:1:40876ef44c]
C P' |
|
Back to top |
|
|
satyenderd Beginner
Joined: 26 Aug 2005 Posts: 144 Topics: 73
|
Posted: Mon Jul 14, 2008 1:15 pm Post subject: Here is the corrected one |
|
|
Thanks for your response.
sorry for the above statement....
here is the correct one which i am using:
CREATE TABLE TABLE02
AS (SELECT * FROM CREATOR.TABLE); _________________ Satya |
|
Back to top |
|
|
satyenderd Beginner
Joined: 26 Aug 2005 Posts: 144 Topics: 73
|
Posted: Mon Jul 14, 2008 1:23 pm Post subject: |
|
|
jsharon1248 wrote: | What tool are you using? SPUFI? QMF? CLP? Did you try this with the entire CREATE statement on one line? |
Thanks Sharon for your response.
I am using SPUFI.
Yeah, I have tried even in single line.
Error::::::
CREATE TABLE TABLE02 AS (SELECT * FROM LEXUS.TLCS002); 000100
---------+---------+---------+---------+---------+---------+---------+--------
DSNT408I SQLCODE = -104, ERROR: ILLEGAL SYMBOL "<END-OF-STATEMENT>". SOME
SYMBOLS THAT MIGHT BE LEGAL ARE: DATA WITH <IDENTIFIER>
DSNT418I SQLSTATE = 42601 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNHPARS SQL PROCEDURE DETECTING ERROR
DSNT416I SQLERRD = 502 0 0 -1 53 0 SQL DIAGNOSTIC INFORMATION
DSNT416I SQLERRD = X'000001F6' X'00000000' X'00000000' X'FFFFFFFF'
X'00000035' X'00000000' SQL DIAGNOSTIC INFORMATION _________________ Satya |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Mon Jul 14, 2008 1:26 pm Post subject: |
|
|
You still appear to have numbering on. Turn numbers off. (Make sure cols 73-80 are blank) _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Mon Jul 14, 2008 1:31 pm Post subject: |
|
|
Satyender,
Please use BBCode to make your code more readable. _________________ ....Terry |
|
Back to top |
|
|
satyenderd Beginner
Joined: 26 Aug 2005 Posts: 144 Topics: 73
|
Posted: Mon Jul 14, 2008 1:38 pm Post subject: CREATE TABLE AS error |
|
|
Nic Clouston wrote: | You still appear to have numbering on. Turn numbers off. (Make sure cols 73-80 are blank) |
I am really sorry for not able to paste the code in the correct form.
The question is i am unbale to create a table using CREATE TABLE AS statement.
Code: |
CREATE TABLE TABLE02 AS (SELECT * FROM creator.tablename);
---------+---------+---------+---------+---------+---------+---------+---------+
DSNT408I SQLCODE = -104, ERROR: ILLEGAL SYMBOL "<END-OF-STATEMENT>". SOME
SYMBOLS THAT MIGHT BE LEGAL ARE: DATA WITH <IDENTIFIER>
DSNT418I SQLSTATE = 42601 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNHPARS SQL PROCEDURE DETECTING ERROR
DSNT416I SQLERRD = 502 0 0 -1 53 0 SQL DIAGNOSTIC INFORMATION
DSNT416I SQLERRD = X'000001F6' X'00000000' X'00000000' X'FFFFFFFF'
X'00000035' X'00000000' SQL DIAGNOSTIC INFORMATION |
_________________ Satya |
|
Back to top |
|
|
|
|