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.

READFormat: CALL READ(JCARD,J,JLAST,NER)Function: Reads a card from <strong>the</strong> <strong>IBM</strong> 1442, Model 6 or 7, only, overlapping <strong>the</strong> conversionfrom card codes to EBCDIC.Parameter description:JCARD - The name of a one-dimensional integer array defined in a DIMENSIONstatement. A card will be read into this array, in Al format, one characterper word.J - An integer constant, an integer expression, or an integer variable. Thisis <strong>the</strong> position of <strong>the</strong> first word of JCARD into which a character willbe read (<strong>the</strong> left-hand end of a field).JLAST - An integer constant, an integer expression, or an integer variable,greater than or equal to J. This is <strong>the</strong> position of <strong>the</strong> last word ofJCARD into which a character will be read (<strong>the</strong> right-hand end of afield).NER - An integer variable. This variable indicates any conditions that have occurredin reading a card, and <strong>the</strong> nature of <strong>the</strong>se conditions.Detailed description: A card read operation is started. While <strong>the</strong> card is being read,<strong>the</strong> characters, one at a time, are converted from card codes to EBCDIC. If an erroroccurs during <strong>the</strong> operation, <strong>the</strong> condition indicator is set, and <strong>the</strong> operation continues.The possible values of <strong>the</strong> condition indicator and <strong>the</strong>ir meaning are listed below:NER is when0 Last card condition.1 Feed or read check.Operator interventionrequired.ADDA1A3A1DECA3A1CARRYDECA1DIVDPACKDUNPKEDITFILLGETICOMPIONDKEYBDMOVEMPYNCOMPNSIGNNZONEPACKPRINTPUNCHPUTP1403P1442READR2501SKIPSTACKSUBS1403TYPERUNPACWHOLEIf a WAIT occurs at location 41, one of <strong>the</strong> following conditions exists:ConditionsReader not ready.Internal subroutine error. Rerun job.If error persists, verify that <strong>the</strong> subroutinedeck is accurate, using <strong>the</strong>listing in this manual. If <strong>the</strong> deck is<strong>the</strong> same, contact your <strong>IBM</strong> representative.Save all output.Accumulator (hex)lxx0lxxl-73-11111111111■1 I 1. 11111 r • MI',

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

Saved successfully!

Ooh no, something went wrong!