Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2005
    Posts
    6

    Unanswered: 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

  2. #2
    Join Date
    Sep 2004
    Location
    Belgium
    Posts
    1,126
    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/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •