adding 15 mins to a time string?

adding 15 mins to a time string?

Post by Laith Suheima » Thu, 22 Apr 1999 04:00:00



Hello,

I am trying to run a batch job every 15 mins by getting the current time and
adding 15 mins to it within the DCL program and then doing a
submit/after=<time+15mins>.

The problem I'm hitting is the correct syntax for adding 15 mins to the
current time.

Any ideas would be greatly appreciated.

Thanks,

Laith Suheimat

 
 
 

adding 15 mins to a time string?

Post by Tim Llewelly » Thu, 22 Apr 1999 04:00:00


How about:

$ submit/after="''F$CVTIME("+00 00:15:00","ABSOLUTE")'" jobname

You will quite probably see some effect where there is often more than 15
mins between the job, due to system and/or batch queue loading (if you end
up in a queue with lots of pending and executing jobs, for example).

HTH


> Hello,

> I am trying to run a batch job every 15 mins by getting the current time and
> adding 15 mins to it within the DCL program and then doing a
> submit/after=<time+15mins>.

> The problem I'm hitting is the correct syntax for adding 15 mins to the
> current time.

> Any ideas would be greatly appreciated.

> Thanks,

> Laith Suheimat


--
Tim Llewellyn, OpenVMS System Manager, Remarcs Project
MedAS at the BBC, Whiteladies Road, Bristol, UK.

I speak for myself only and my views in no way represent those of
MedAS or the BBC.

 
 
 

adding 15 mins to a time string?

Post by Larry Schul » Thu, 22 Apr 1999 04:00:00


On Wed, 21 Apr 1999 17:00:02 +0100, "Laith Suheimat"


>Hello,

>I am trying to run a batch job every 15 mins by getting the current time and
>adding 15 mins to it within the DCL program and then doing a
>submit/after=<time+15mins>.

>The problem I'm hitting is the correct syntax for adding 15 mins to the
>current time.

>Any ideas would be greatly appreciated.

>Thanks,

>Laith Suheimat


submit/after=  "+ 0 00:15:00" filename.com
 
 
 

adding 15 mins to a time string?

Post by John Votter » Thu, 22 Apr 1999 04:00:00


$ SUBMIT/AFTER="+00:15" command.com
> -----Original Message-----

> Sent: Wednesday, April 21, 1999 12:00 PM

> Subject: adding 15 mins to a time string?

> Hello,

> I am trying to run a batch job every 15 mins by getting the
> current time and
> adding 15 mins to it within the DCL program and then doing a
> submit/after=<time+15mins>.

> The problem I'm hitting is the correct syntax for adding 15
> mins to the
> current time.

> Any ideas would be greatly appreciated.

> Thanks,

> Laith Suheimat


 
 
 

adding 15 mins to a time string?

Post by D.We » Thu, 22 Apr 1999 04:00:00



>On Wed, 21 Apr 1999 17:00:02 +0100, "Laith Suheimat"

>>Hello,

>>I am trying to run a batch job every 15 mins by getting the current time and
>>adding 15 mins to it within the DCL program and then doing a
>>submit/after=<time+15mins>.

>>The problem I'm hitting is the correct syntax for adding 15 mins to the
>>current time.

>>Any ideas would be greatly appreciated.

>>Thanks,

>>Laith Suheimat

>submit/after=  "+ 0 00:15:00" filename.com

or even

 submit/after="+00:15"  filename.com

 The days field in the Delta time is optional and you can truncate after the
 hours field.

 Note.

 Although

 submit/after="+0 00:15:00"  filename.com  will work  this syntax is not
 really correct  -   try   submit/after="+1 00:15:00" filename.com :)

 The full syntax should really be

 submit/after="+0-00:15:00.00" filename.com

ie  ddd-hh:mm:ss.cc

David Webb
VMS and Unix team leader
CCSS
Middlesex University

 
 
 

1. Convert Date/Time String to VMS Internal Time

 I tried & tried using the VMS calls LIB$CONVERT_DATE_STRING &
 LIB$INIT_DATE_TIEM_CONTEXT, but somehow it never works. I need
 to convert the date/time string in YYYYMMDDHHMMSS format to VMS
 internal date-time format.

 I would appreciate any help. Below is the small test program I wrote
 but it always fails. Would anybody please tell me what's wrong?

CMAPF_A1>> type try.c

#include descrip
#include ssdef
#include file
#include stdio
#include string
#include libdtdef
#include stdarg
main()
{
        char            format_buf[] = "|YYYY|MM|DD|HH|MM|SS|CC|";
        $DESCRIPTOR     (format_desc, format_buf);
        int     inpctxt = 0;
        int     dateint[2];             /* Message date/time - quadword */
        char    date_buf[] = "1995083110203000";
        $DESCRIPTOR ( date_desc, date_buf);
        int     mrif_status;
        int     component = LIB$K_INPUT_FORMAT;

        mrif_status = LIB$INIT_DATE_TIME_CONTEXT(&inpctxt,
                                        &component,
                                        &format_desc);
        printf("Init Status %d\n", mrif_status);

        mrif_status = lib$convert_date_string( &date_desc,
                                dateint, &inpctxt);
        printf("Convert Status %d\n", mrif_status);

CMAPF_A1>> run try
        Init Status 1
        Convert Status 1410132  

                        /*#define LIB$_ILLFORMAT 1410132 */

--
 __________________________________________________________________________

  Home: (65)-2975048  Off: (65)-3302581                   (c) Pankaj Arora

2. Task List

3. Shutdowning 15 VAX machines...

4. DBASE grammar wanted

5. Source for non-standard DEC 15 Amp power cords?

6. files turning to uppercase

7. VMS systems up for 15 years !!!

8. hangup at start windows 98

9. Broken SPX graphics card, code 15 FCC interrupt

10. FS: Compaq external DLT drive(15/30GB) ; $350

11. LN 15 printer queue DCPS 1.7 ?

12. ANNOUNCEMENT: CircleMUD v3.00 beta patch level 15 For OpenVMS

13. UPDATE: CircleMUD v3.00 beta patch level 15 For OpenVMS.