Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Easytrieve with SQL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
Jan Olav Pedersen

New User


Joined: 23 Jan 2018
Posts: 1
Location: Norway

PostPosted: Tue Jan 23, 2018 7:29 pm    Post subject: Easytrieve with SQL
Reply with quote

Why isn't this SQL running is Easytreieve. The sql is working fine i SPFI, COBOl and REXX

SELECT ROUND(MONTHS_BETWEEN (CHAR(CURRENT DATE, ISO),:WS-DATE )) +
FROM SYSIBM.SYSDUMMY1

The hostvariable is translated like this
(CHAR (CURRENT DATE , ISO) , ?))
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8220
Location: Dubuque, Iowa, USA

PostPosted: Tue Jan 23, 2018 7:44 pm    Post subject: Reply to: Easytrieve with SQL
Reply with quote

SQL Statement - CA Easytrieve lists
Quote:
SELECT INTO *(for static-only processing)
as the only valid SELECT for DB2 access. You do not have an INTO in your code.

And since the syntax can vary from language to language, the mere fact that your SQL statements works in SPFI (sic) or COBOL or REXX does NOT mean that your SQL statement will work in Easytrieve. It is a mistake to assume that what works for one language works for all languages.
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am
No new posts RACF Easytrieve Plus macro Susan Jackson CA Products 0 Fri Jun 03, 2016 8:25 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us