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
 

 

Problem with db2 dates in ezt code

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

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Mon Apr 28, 2008 11:07 am    Post subject: Problem with db2 dates in ezt code
Reply with quote

Hi,

I used to code an SQL query in cobol whenever I had to play with dates.

Ex:
Select date(:ws-date1) - date(ws-date2) into :ws-date-test from sysibm.sysdummy1;

This time I had to play with dates in EZT.

Ex: To extract date of 7 days before
Select date(:ws-date1) - 7 Days into ws-date-test from sysibm.sysdummy1;

It not returning the date into the host variable. The ws-date-test contains the default value which is populated before the query.

Format of date in ws-date-test 'CCYY-MM-DD'

Do we need to do something else in EZT ?

Thanks,
-Kapil.
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Apr 28, 2008 6:14 pm    Post subject:
Reply with quote

1. How about a colon before ws-date-test?

2. How are ws-date1 and ws-date-test defined?
Back to top
View user's profile Send private message
hikaps14

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Mon Apr 28, 2008 7:07 pm    Post subject: Reply to: Problem with db2 dates in ezt code
Reply with quote

Yup,

colon is present before all the host variables. That create problems at bind time. I am getting error at run time. It doesn't seem to be syntactical problem. There is no abend in my job.

Just the output is wrong.

All the date variables are defined as w 10 A.

I am doubtful abt ezt & db2 interface. The same query works fine in cobol.

Thanks,
-Kapil.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Apr 28, 2008 10:44 pm    Post subject:
Reply with quote

Hello,

Quote:
I am doubtful abt ezt & db2 interface.
Then you should open an issue with CA support. . .
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 Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm


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