Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Logic to get GDG creation date in my cocbol program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
hikaps14

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Fri Jun 30, 2006 9:53 am    Post subject: Logic to get GDG creation date in my cocbol program
Reply with quote

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
View user's profile Send private message

param_rajesh_2001
Warnings : 1

New User


Joined: 23 Jun 2006
Posts: 18
Location: Bangalore

PostPosted: Fri Jun 30, 2006 10:19 am    Post subject:
Reply with quote

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
View user's profile Send private message
sihanature
Warnings : 1

New User


Joined: 01 Sep 2005
Posts: 33

PostPosted: Tue Jul 11, 2006 7:40 pm    Post subject: Re: GDG Creation Date
Reply with quote

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
View user's profile Send private message
hikaps14

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Wed Jul 12, 2006 10:36 am    Post subject: Re: Logic to get GDG creation date in my cocbol program
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us