Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AS400 invalid token question

Status
Not open for further replies.

tonyweis138

Programmer
Jul 27, 2007
8
0
0
US
I am trying to run the following query and it is telling me that i have an invalid token comma. Any ideas?


select *, CASE WHEN UBILOP = 'SHP' THEN '' ELSE USHACT END AS BILLTO,
CASE WHEN USHVIA = '04' THEN 1 ELSE 0 END AS SAT,
CASE UPAYTM WHEN '05' THEN 2
WHEN '08' THEN 2
WHEN '04' THEN 1
ELSE 0 END AS CODTYPE,
CASE USHVIA WHEN '0' THEN 'C'
WHEN '01' THEN 'S'
WHEN '02' THEN 'G'
WHEN '03' THEN 'H'
ELSE 'S'
END AS SERVICE from UPSIMP00 where UORDNO = @input
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top