24.12.2013 Views

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

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.

GETLIN [CALLI 34]<br />

22.51 GETLIN [CALLI 34]<br />

FUNCTION<br />

Returns the SIXBIT monitor-assigned name of the terminal attached to<br />

your job.<br />

CALLING SEQUENCE<br />

GETLIN<br />

return<br />

ac,<br />

RETURN<br />

The SIXBIT name of the terminal is in"the ac, left-justified, in the<br />

form TTYnnn, where nnn is the dynamic terminal number associated with<br />

your job's terminal.---<br />

If your job is not attached to any terminal, the ac contains:<br />

XWD<br />

O,'nnn'<br />

In this format, nnn is the right half of the name of the terminal to<br />

which your job was-last attached '(that is, nnn in TTYnnn)<br />

EXAMPLES<br />

GETLIN T1, ;Get terminal name<br />

TLNN T1,-1 ; Job detached?<br />

JRST NOTTY ;Yes<br />

;No<br />

This sequence gets the name of the terminal for the job and checks<br />

whether the job is currently detached.<br />

COMMON PROGRAMMING ERRORS<br />

Omitting the comma after the ac.<br />

22-159

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

Saved successfully!

Ooh no, something went wrong!