CNVSECS: Convert HH:MM:SS format to seconds


Use the CNVSECS EXEC convert time in the HH:MM:SS format to seconds.

The following statement shows the format of the call from the EXEC:

IMFEXEC SELECT EXEC(CNVSECS TIMEIN) WAIT(YES)

Table 1 lists the CNVSECS parameters.

Table 1. CNVSECS parameters

Parameter

Required?

Description

TIMEIN

Yes

Time in HH:MM:SS format

Following is a list of return codes from CNVSECS:

Return code

Description

0

Request completed successfully

8

Input parameter not in HH:MM:SS format

12

Input parameter not specified

Table 2 lists the variables returned by CNVSECS in the LOCAL POOL.

Table 2. Variables returned by CNVSECS in the LOCAL POOL

Variable

Type

Description

SECSOUT

Data

Output time in seconds

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*