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
 
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

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