16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

cal<br />

Localization<br />

Usage Note<br />

Exit Values<br />

Portability<br />

v If two arguments are given, cal assumes that the first argument is the month<br />

(either a number from 1 to 12 or a month name) and the second is the year.<br />

cal uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F, “Localization” for more information.<br />

Year numbers less than 100 refer to the early <strong>Christian</strong> era, not the current century.<br />

This command prints the Gregorian calendar, handling September 1752 correctly.<br />

Many cultures observe other calendars.<br />

0 Successful completion.<br />

1 Failure due to any of the following:<br />

v An incorrect command-line argument<br />

v An incorrect date<br />

v A year outside the range 1 to 9999 A.D.<br />

X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

calendar — Display all current appointments<br />

Format<br />

Description<br />

calendar [–]<br />

Note: The calendar utility is fully supported for compatibility with older <strong>UNIX</strong><br />

systems. However, because it is no longer supported by P<strong>OS</strong>IX.2 IEEE<br />

standard 1003.2-1992, this utility should be avoided for applications intended<br />

to be portable to other <strong>UNIX</strong>-branded systems.<br />

If you do not specify any options, calendar displays all current appointments on<br />

standard output (stdout). It searches the file calendar in the current directory,<br />

looking for lines that match either today’s date or tomorrow’s date. On Friday,<br />

Saturday, or Sunday, tomorrow extends through to Monday. Each appointment must<br />

fit on a single line, with the date formatted as one of:<br />

January 27<br />

1/27<br />

jan 27<br />

Note: The name of the month can be abbreviated to three letters. Also, the case is<br />

not significant and the month can be given numerically.<br />

106 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!