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
 

 

Inserting Curent Date in Input FIle

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
ksk

Active User


Joined: 08 Jun 2006
Posts: 356
Location: New York

PostPosted: Tue Apr 01, 2008 12:16 pm    Post subject: Inserting Curent Date in Input FIle
Reply with quote

Hi All,

We have an input file with record length 100 and it's having data upto 73 colomns. We want to LOAD this file into DB2 table with CURRENT DATE from 73 to 82 clomns.

Can we use CURRENT DATE function in LOAD CARD. I am asking this b'cz I can't test this from my side. This would be done from our support people. We want to make sure before sending request to support people.

If CURRENT DATE won't work, please let me know if ther is any system defined function to extarct CURRENT DATE.

KSk
Back to top
View user's profile Send private message

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Tue Apr 01, 2008 4:51 pm    Post subject:
Reply with quote

What load utility you are using?

I am not sure, but try with this...
...Locate SYSIN of load
...Try like this
Code:
date_field POSITION(73:82) DATE CURRENT_DATE

Please refer how to give default values or new values while loading into table on your LOAD utility manual.
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 356
Location: New York

PostPosted: Thu Apr 03, 2008 11:33 am    Post subject:
Reply with quote

Hi Gnanas,

Thanks for the solution. I did it using DFSORT's DATE(-1) function in JCL rather doing it in LOADCARD and worked fine.

Regards,
KSK
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am


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