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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ADDA1A3A1DECA3A1CARRYDECA1DIVDPACKDUNPKEDIT"4"'"FILLGETICOMPIONDKEYBDMOVEMPYNCOMPNSIGNNZONEPACKPRINTPUNCHPUTP1403P1442READR2501SKIPSTACKSUBS1403TYPERUNPACWHOLEEDITFormat: CALL EDIT(JCARD, J, JLAST, KCARD, K, KLAST)Function: Edits data from one array into ano<strong>the</strong>r array, which contains <strong>the</strong> edit mask.Parameter description:JCARD - The name of a one-dimensional integer array defined in a DIMENSIONstatement. This array contains <strong>the</strong> data to be edited, called <strong>the</strong> sourcefield, one character per word, in Al format.J - An integer constant, an integer expression, or an integer variable. Thisis <strong>the</strong> position of <strong>the</strong> first character of JCARD to be edited (<strong>the</strong> left-handend of a field).JLAST - An integer constant, an integer expression, or an integer variable, greaterthan or equal to J. This is <strong>the</strong> position of <strong>the</strong> last character of JCARD tobe edited (<strong>the</strong> right-hand end of a field).KCARD The name of a one-dimensional integer array defined in a DIMENSIONstatement. This is <strong>the</strong> array into which data is edited; it contains <strong>the</strong> editmask before editing begins, stored one character per word, in Al format,and is called <strong>the</strong> mask field.K - An integer constant, an integer expression, or an integer variable. Thisis <strong>the</strong> position of <strong>the</strong> first character of <strong>the</strong> edit mask (<strong>the</strong> left-hand end ofa field).KLAST - An integer constant, an integer expression, or an integer variable, greaterthan K. This is <strong>the</strong> position of <strong>the</strong> last character of <strong>the</strong> edit mask (<strong>the</strong>right-hand end of a field).Detailed description: The following table gives <strong>the</strong> control characters for editing, <strong>the</strong>characters used to make up <strong>the</strong> mask, and <strong>the</strong>ir respective functions:Control CharacterFunctionb (blank) This character is replaced by a character from <strong>the</strong>source field.0 (zero) This character indicates zero suppression and is replacedby a character from <strong>the</strong> source field. The position of thischaracter indicates <strong>the</strong> rightmost limit of zero suppression(see description of operation below). Blanks areinserted in <strong>the</strong> high-order nonsignificant positions of<strong>the</strong> field.

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

Saved successfully!

Ooh no, something went wrong!