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
 

 

How to get the Compile Date and Time...

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
bhim_s

New User


Joined: 19 Sep 2006
Posts: 46
Location: New Delhi

PostPosted: Thu Jun 04, 2009 7:31 pm    Post subject: How to get the Compile Date and Time...
Reply with quote

Could any one help me how to get the compile Time and Date using the new PL/I compiler (5655-H31 IBM(R) Enterprise PL/I for z/OS V3.R8.M0).. Earlier we were using the "COMPILE" to get compile date and time with the old compiler. Using COMPILE with the new compiler I am getting the following warning messages..
Code:
IBM1198I W         28  A null argument list is assumed for COMPILE.
IEW2454W 9203 SYMBOL COMPILE UNRESOLVED.  NO AUTOCALL (NCAL) SPECIFIED.

and in the output I am getting NULL values in compilation date and time fields.
In the program it was declared as
Code:
DCL       COMPILE           ENTRY RETURNS (CHAR(21) VAR);

and some structures were declared to capture the compilation date and time from this.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Thu Jun 04, 2009 7:45 pm    Post subject: Reply to: How to get the Compile Date and Time...
Reply with quote

search the manuals for COMPILEDATE and COMPILETIME
Back to top
View user's profile Send private message
bhim_s

New User


Joined: 19 Sep 2006
Posts: 46
Location: New Delhi

PostPosted: Thu Jun 04, 2009 9:50 pm    Post subject:
Reply with quote

Thanks Enroco .. I copied the following code in SRN(where I need the change)
Code:
%DECLARE COMP_DATE CHAR; %COMP_DATE=QUOTE(COMPILEDATE); PUT EDIT (COMP_DATE) (A);

as per manual to display the compilation date and time.Activated both sub and main programs.
But when I ran through the JCL the job abended with the following errors
Code:
CEE3201S The system detected an operation exception (System
Completion Code=0C1).
CEE3250C The system or user abend U 099 R=NULL     was issued.                 
         From entry point _ON_Begin_1413_Blk_2 at compile unit offset +000001A0
         103094C8.                                                             


Would be really helpful if you have any example to use it.
Back to top
View user's profile Send private message
bhim_s

New User


Joined: 19 Sep 2006
Posts: 46
Location: New Delhi

PostPosted: Mon Jun 08, 2009 9:29 pm    Post subject:
Reply with quote

I am able to get the time and date by coding the following lines..
Code:

     %DECLARE COMP_TIME CHAR;         
     %COMP_TIME=QUOTE(COMPILETIME);   
    PUT SKIP LIST('COMP_TIME',COMP_TIME);

Below the output I got
Code:

COMP_TIME                8.JUN.09 16.55.11
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 -> PL/I & Assembler 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 Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 5 Sat May 06, 2017 12:59 am
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts Application not run by time HH:MM tri... jzhardy IBM Tools 1 Sun Apr 09, 2017 3:22 pm


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