11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

In the following example, the program statement prints a three-character month<br />

name, a numeric day, and a four-digit year (suppressing zeros if necessary):<br />

PRINT OCONV(ORDER.REC, "DMDYA3,Z,Z4")<br />

In the following example, the program statement prints J 1970 4:<br />

PRINT OCONV(732,"dmywa1z3")<br />

Some sample format codes are applied in the following table.<br />

Input Value Conversion Code Output<br />

744 DDMY 13 Jan 1970<br />

744 DMDY 01 13 1970<br />

1006 D 02 Oct 1970<br />

1006 DDMY 02 10 1970<br />

1006 DDMYZ0,Z,Z 2 10 1970<br />

0 D4/ 12/31/1967<br />

7334 D 29 Jan 1988<br />

7334 DDMY,A,Z4 29 January 1988<br />

7334 DDMY,A3 29 Jan 1988<br />

7334 DDMY 29 01 1988<br />

7334 DD 29<br />

7334 DM 01<br />

7334 DW 5<br />

7334 DWA Friday<br />

7334 DQ 1<br />

7334 DQA Winter<br />

7334 DJY 029 1988<br />

OCONV Date Examples<br />

OCONV Date (D) 1-492

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

Saved successfully!

Ooh no, something went wrong!