View previous topic :: View next topic
|
Author |
Message |
hikaps14
Active User
Joined: 02 Sep 2005 Posts: 189 Location: Noida
|
|
|
|
Hi ,
i want a logic to get GDG creation date in my cocbol program .
i want to write it into another file .
is there any way of accessing the attributes of any GDG thru cobol prog.
Thanks ,
Kapil . |
|
Back to top |
|
|
param_rajesh_2001 Warnings : 1 New User
Joined: 23 Jun 2006 Posts: 18 Location: Bangalore
|
|
|
|
Hi,
We may not able to get the date directly from program .
U can do listcat on GDG and get the date and write in the GDG header record .
In the program take the date from header record . |
|
Back to top |
|
|
sihanature Warnings : 1 New User
Joined: 01 Sep 2005 Posts: 33
|
|
|
|
we can able to check the properties of GDG by
using 'LISTC ENT(GDGNAME) ALL' in a command line.
you just try with this command in the 'SYSIN DD' of program.
Regards, |
|
Back to top |
|
|
hikaps14
Active User
Joined: 02 Sep 2005 Posts: 189 Location: Noida
|
|
|
|
Hi,
U r right .
Listcat will work but the output has to be sorted a lot.
that is again a prob.
so I wrote a simple sas code to get creation date.
n this working fine now .
Thanks every one ....
Kapil. |
|
Back to top |
|
|
|