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.

date<br />

time<br />

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

The date and time in TDATE$ format (optional). The default is the current date and<br />

time.<br />

The time in TIME$ format (optional). The default is the current time.<br />

Parameters datefmt, timefmt, buflen, and bufaddr are required; sep is optional and is set<br />

to zero (space separator) if omitted; offset is optional and is set to zero if omitted.<br />

Output Buffer<br />

The SFDT$ packet and the buffer to contain the ASCII string must be in the same<br />

D-bank. This D-bank must be based when SFDT$ is called.<br />

The caller-provided buffer must be large enough to hold the ASCII string generated by<br />

the specified format. If not, the ASCII string is truncated to the length of the buffer<br />

(buflen), and the error return is taken. If the buffer length is greater than the format<br />

length, the buffer is space-filled to the end of the buffer.<br />

22.1.2. Calling Sequence<br />

SFDT$ is called with the MASM PROC S$FDT$. This PROC can call SFDT$ as a<br />

relocatable element, a common bank element, or a common bank element using the<br />

auto-switch method.<br />

Calling Format<br />

S$FDT$[,t] pktaddr [date] [time]<br />

error return<br />

normal return<br />

Parameters<br />

t<br />

The type of call to SFDT$. This parameter is optional and may be omitted. CB or A,<br />

if specified, must be enclosed by apostrophes.<br />

blank Call the relocatable version of SFDT$. This is the default if t is omitted.<br />

'CB' Call the common bank version of SFDT$.<br />

'A' Call the common bank version of SFDT$ using the auto switch method.<br />

pktaddr<br />

The address of the five-word SFDT$ packet.<br />

7833 1733–004 22–5

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

Saved successfully!

Ooh no, something went wrong!