View previous topic :: View next topic |
Author |
Message |
Nancy Beginner
Joined: 23 May 2003 Posts: 77 Topics: 26
|
Posted: Tue May 16, 2006 6:50 am Post subject: Move failed to Endevor |
|
|
Any idea, why I am getting this JCL error while moving the program to Endevor ....
DSNH104I DSNHPARS ILLEGAL SYMBOL ",". SOME SYMBOLS THAT MIGHT BE LEGAL ARE: + -
Guess it is something with the Profile option, but not very sure
Regards
Nancy |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue May 16, 2006 6:54 am Post subject: |
|
|
Quote: |
Guess it is something with the Profile option, but not very sure
|
Nancy,
It is DB2 error. One of your sql statements has an error. You should also have got the line number of error
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Nancy Beginner
Joined: 23 May 2003 Posts: 77 Topics: 26
|
Posted: Tue May 16, 2006 7:04 am Post subject: |
|
|
Yes Kolusu, Its thrown at the below SQL but I could not find anything wrong with that.
Code: |
087000 EXEC SQL
IGYDS0226-E DSNH104I DSNHPARS ILLEGAL SYMBOL ",". SOME SYMBOLS THAT
ARE: + - AND
DECLARE SIBR521_CSR CURSOR FOR
087200 SELECT USR_ID
, CH_CNSMR_ID
, CNSMR_ID
087230 , MSG_REQ_TYPE
087240 , TXN_VALUE
, LOG_REASON_CODE
, COMP_CODE
087280 , BUS_RESP_CODE
, SRC_ACCT_TYPE
087291 , SLA_LOG_TMSTP
, REASON_CODE
, SESSN_NBR
087300 FROM
087400 SLA_BILL_LOG
087500 WHERE
087600 MQ_TMSTP BETWEEN :WW-START-TS AND :WW-END-TS
087700 AND
088000 LOG_REASON_CODE = 13
FOR READ ONLY
088800 END-EXEC.
|
Would you suggest something please ?
Regards |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue May 16, 2006 7:18 am Post subject: |
|
|
Nancy,
The compiler is complaining about a "," so it must be one of the columns in your select statement. So make sure that you spelled all the columns correctly matching your table layout.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Nancy Beginner
Joined: 23 May 2003 Posts: 77 Topics: 26
|
Posted: Tue May 16, 2006 7:28 am Post subject: |
|
|
Yes, all the column names are correctly typed.
Actually I copied this SQL from a document and it is giving problem for the junk characters. But when I re-typed it manually on mainframe, it worked fine and moved to Endevor.
No idea what the reason is, again feel that something related to profile options. Earlier I used to do PACK OFF to get rid of these special chars but that is also not working now.
Regards |
|
Back to top |
|
 |
Nancy Beginner
Joined: 23 May 2003 Posts: 77 Topics: 26
|
Posted: Wed May 17, 2006 5:50 am Post subject: |
|
|
Kolusu,
It worked for one of the program but now the same problem is coming to another two. Can you suggest something ? We have verified the SQL against Table and the column names look good.
Thanks |
|
Back to top |
|
 |
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Wed May 17, 2006 12:15 pm Post subject: |
|
|
Maybe, if you retyped manually for the other two programs.... ? _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Wed May 17, 2006 12:32 pm Post subject: |
|
|
in ISPF, try typing F P'.' and see if there are invalid characters in the file that are not shown in the editor. If there are, use the command C P'.' ' ' ALL to convert them to spaces. Some emulators add bad characters if you 'paste' data into them. Also, if you edited the file on a PC and uploaded the file, you may have TAB characters that the PC knows about but that the host does not understand. Those may show up as X'05' characters at the host (use HEX ON to see). |
|
Back to top |
|
 |
Nancy Beginner
Joined: 23 May 2003 Posts: 77 Topics: 26
|
Posted: Thu May 18, 2006 3:10 am Post subject: |
|
|
Thanks for your help.
Couldnt really identify the reason but programs are working now.
Cheers
Nancy |
|
Back to top |
|
 |
|
|