18.08.2013 Views

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SFDT$–System Standard Format Date and Time<br />

22.2. PLUS Interface<br />

SFDT$ can be called directly from PLUS programs. The packet for SFDT$ is described in<br />

22.2.1. The calling sequence for SFDT$ is described in 22.2.2.<br />

22.2.1. Packet<br />

Required Data Structures<br />

SFDT$ requires a five-word packet and a seven-word (or less) buffer area. The packet<br />

passes parameters to SFDT$ and the buffer area contains the ASCII date/time string<br />

generated by SFDT$. These data structures are defined as follows:<br />

DEFINE TYPE SFDT_BUFFER = 28 ASCII CHARACTERS LOCATABLE;<br />

DEFINE TYPE SFDT_PACKET = MAPPED LOCATABLE<br />

[*: LOGICAL(6),<br />

SFDT_DATE_FORMAT: 6 BIT INTEGER,<br />

SFDT_TIME_FORMAT: 6 BIT INTEGER,<br />

SFDT_SEPARATOR: 6 BIT STATUS (S’SPACE’:0, S’DASH’:1),<br />

*: LOGICAL(6),<br />

SFDT_PACKET_VERSION: 6 BIT INTEGER,<br />

SFDT_CHAR_OFFSET: 6 BIT INTEGER,<br />

SFDT_BUFFER_LENGTH: 6 BIT INTEGER,<br />

SFDT_NUMBER_CHAR: 6 BIT INTEGER,<br />

SFDT_ERROR_CODE: 18 BIT SIGNED INTEGER,<br />

SFDT_BUFFER_ADDRESS: 36 BIT MACHINE POINTER,<br />

SFDT_DATE: 36 BIT MACHINE LOGICAL,<br />

SFDT_TIME: 36 BIT MACHINE LOGICAL];<br />

The calling program can use these data types to set up the necessary data entities for<br />

SFDT$. For example<br />

DECLARE buffer: SFDT_BUFFER;<br />

DECLARE pkt: SFDT_PACKET;<br />

where:<br />

buffer<br />

pkt<br />

An identifier of a buffer that SFDT$ places the ASCII date/time string into.<br />

An identifier of a data entity that passes information to SFDT$.<br />

The type definitions for SFDT_BUFFER and SFDT_PACKET are available in PLUS COPY<br />

elements (see 22.2.2).<br />

22–8 7833 1733–004

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!