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: 355
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: 355
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 OUTREC OVERLAY different to INCREC ge... Joerg.Findeisen SYNCSORT 1 Fri Apr 27, 2018 2:11 am
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am

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