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.

[Example: DIMENSION IUNPK(26),IPAKD(26)CALL PACK(IUNPK,1,25,IPAKD,1)Before:IUNPK AbBbCbDbEbFbGbHblbJbKbLbMbNbObPbQbRbSbTbUbVbWbXbYbZb115 I IPosition 1 10 15 20 25IPAKD Oblb2b3b4b5b6b7b8b9bOblb2b3b4b5b6b7b8b9bOblb2b3b4b5bPosition1 5 1 15 20 25After:IUNPK is <strong>the</strong> same.IPAKD ABCDEFGHIJKLMNOPQRSTUVWXYZ3b4b5b6b7b8b9b0b1b2b3b4b5bPosition 1 5 10 15 20 25Note that each two characters shown above represent one element of <strong>the</strong> array.Also, after IUNPK has been PACKed, <strong>the</strong> twenty-sixth character, Z, has beenPACKed since 25 characters were specified (between J and JLAST).Errors: NoneRemarks: If JLAST is less than or equal to J, <strong>the</strong> first two characters of JCARD will bePACKed. An even number of characters in JCARD will always be PACKed into KCARD.An equation for how much space is required, in elements, in KCARD isSpace in KCARD -JLAST-J+2 ]2This result is rounded down at all times.-61-1 1 1 U 111 111 1111 11 111 -1.111,111111 I RIMINIR. 11119,1l. II

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

Saved successfully!

Ooh no, something went wrong!