10.07.2015 Views

1130 Commercial Subroutine Package - All about the IBM 1130 ...

1130 Commercial Subroutine Package - All about the IBM 1130 ...

1130 Commercial Subroutine Package - All about the IBM 1130 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

ADD P1403A1A3AlDECA3A1 Format: CALL P1403(JCARD, J, JLAST, NER)CARRYDECA1 Function: The printing of one line on <strong>the</strong> <strong>IBM</strong> 1403 Printer, Model 6 or 7, is initiated,DIVand control is returned to <strong>the</strong> user.DPACKDUNPK Parameter description:EDITFILLJCARD - The name of a one-dimensional integer array defined in a DIMENSIONGETstatement. This array contains <strong>the</strong> information to be printed, on <strong>the</strong>ICOMP<strong>IBM</strong> 1403 Printer, in Al format, one character per word.IONDKEYBDJ - An integer constant, an integer expression, or an integer variable. ThisMOVEis <strong>the</strong> position of <strong>the</strong> first character of JCARD to be printed (<strong>the</strong> left-handMPYend of a field).NCOMPNSIGN JLAST - An integer constant, an integer expression, or an integer variable,NZONEgreater than or equal to J. This is <strong>the</strong> position of <strong>the</strong> last character ofPACKJCARD to be printed (<strong>the</strong> right-hand end of a field).PRINTPUNCHNER - An integer variable. This variable indicates carriage control tape condi-PUTtions that have occurred in printing.P1403 .4-P Detailed description: When <strong>the</strong> previous print operation is finished, if a print operationREAD was going on, <strong>the</strong> routine begins. The characters to be printed are converted to 1403R2501 Printer codes and reversed so as to match <strong>the</strong> 1403 buffer mechanism. Since <strong>the</strong> char-SKIP acters are taken in pairs, an even number of characters is required. If necessary, <strong>the</strong>STACK character at JCARD(JLAST+1) will be used to get an even number. Printing is <strong>the</strong>nSUB initiated and control is returned to <strong>the</strong> user. When printing is finished, <strong>the</strong> printer spacesS1403 one line and <strong>the</strong> indicator, NER, is set as follows:TYPERUNPACWHOLENER is when3 Channel 9 has been encountered4 Channel 12 has been encounteredIf nei<strong>the</strong>r channel 9 nor channel 12 is encountered, <strong>the</strong> indicator is not set. If a WAIToccurs at location 41, one of <strong>the</strong> following conditions exists:ConditionsPrinter not ready or end of forms.Internal subroutine error. Rerun job. If error persists,verify that <strong>the</strong> subroutine deck is accurate, using <strong>the</strong> listingin this manual. If <strong>the</strong> deck is <strong>the</strong> same, contact your local<strong>IBM</strong> representative. Save all output.Accumulator (hex)90009001<strong>All</strong> of <strong>the</strong> above WAITs require operator intervention.

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

Saved successfully!

Ooh no, something went wrong!