If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Store the GDG creation date in DB2 Table column

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-30-06, 14:40
vikasa vikasa is offline
Registered User
 
Join Date: Nov 2005
Posts: 6
Store the GDG creation date in DB2 Table column

HI,

I need store the GDG creation date through CObol program in a db2 table column. How can i do this.

I am copying the GDG records in a DB2 table and i want to store the GDG creation date in one of the DB2 table column for all the records.

The overall scenrio is:
I am using the DB2 cobol program to map the input copybook with the DCLGEN generated copybook. The program moves the records and then finally through LOAD JCL i am loading the data in table.

Now i want to include the GDG creation date as one of the column value for all the records while i move the records from GDG to the new DCLGEN generated copybook as an input for LOAD JCL.

How to get the creation date in cobol program for the GDG version that is the input file for the program?

Please advise and its urgent.

Thanks
Reply With Quote
  #2 (permalink)  
Old 07-02-06, 09:18
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
According to a reply on the IBM COBOL forum (http://ibmmainframes.com/forum/about12089.html) it seems to be impossible to obtain the GDG creation date directly, unless it's stored (manually) in the GDG header.

A related post (http://ibmmainframes.com/forum/about10357.html) about data set size seems to indicate the same: you need to use external tools, possibly called from within COBOL, to get at those dataset features.
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On