IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Not able to fetch Date from SYSIBM.SYSDUMMY1


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kiran_tm

New User


Joined: 01 Jul 2009
Posts: 1
Location: India

PostPosted: Wed Sep 15, 2010 10:59 pm
Reply with quote

HI,

From one of the program, i am trying to query on the SYSIBM.SYSDUMMY1 table to obtain the future date, by adding to 1 month, 3 month , 6 month & 12 month to the date passed.

This program is called from many modules in all the places its working fine and its returning date, but in one program its returning spaces. however, for the same input with sane date format as a standalone its working fine.

Thinking that the variable might be not correctly initialized, i tried passing the date in different ways, but didn't work.

so could you please help me out to sort out this issue, please refer the attachment of the program flow taken while executing code in debugging mode.



[img] [/img][/code]
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Sep 15, 2010 11:08 pm
Reply with quote

if it works for others and not for one,
the I would suggest insuring that
  • the definition of the USING parms in the CALL statement are the same as programs that work
  • and that the CALL statement is the same as others that work


by the way, unless you are using a cusor, you would be SELECTing not FETCHing.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Sep 16, 2010 12:18 am
Reply with quote

Hello,

Many of our members may not download attachments. Please do not post them.

When you want to post a "screenshot" from a 3270-screen, simply use Copy/Paste and the "Code" this. No typing is required. This will improve appearance and preserve alignment.

Suggest you become familiar/comfortable with the Preview as well. You can see your post as it will appear to the forum rather than how it looks in the Reply Edotor.

If you do not have this fixed yet, suggest you post (Copy/Paste/Code) whatever is in that attachment as well as the problem code.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top