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.

2. If all characters in <strong>the</strong> source field have not been placed in <strong>the</strong> mask field before <strong>the</strong>end of <strong>the</strong> mask field is encountered, <strong>the</strong> whole mask is set to asterisks and editingis terminated.3. CR (credit) and - (minus) in <strong>the</strong> rightmost positions of <strong>the</strong> mask field are blanked if<strong>the</strong> source field is positive (does not have an 11-zone over <strong>the</strong> rightmost character).4. The zero suppression scan starts at <strong>the</strong> left end of <strong>the</strong> mask field and proceeds leftto right, replacing zeros (0), blanks (b's), decimal points (.), and commas (,). Thelast position replaced will occur where <strong>the</strong> zero suppression character was located,or one position to <strong>the</strong> left of where a significant character, not zero (0), blank (b),decimal point (. ), or comma (,), occurs. If <strong>the</strong> zero suppression character was anasterisk (*), <strong>the</strong> replacement character is an asterisk. O<strong>the</strong>rwise, <strong>the</strong> replacementcharacter is a b (blank).5. If <strong>the</strong> zero suppression character was a dollar sign ($), a dollar sign is placed in <strong>the</strong>last replaced position in <strong>the</strong> zero suppression scan.In order for <strong>the</strong> edit routine to work correctly and as described, five rules must befollowed in creating <strong>the</strong> mask field:1. There must be at least as many b's (blanks) in <strong>the</strong> mask field as characters in <strong>the</strong>source field.2. If <strong>the</strong> mask field contains zero (0), asterisk (*), or dollar sign ($), zero suppressionwill be used and <strong>the</strong> first character in <strong>the</strong> mask field must be a b (blank).3. The mask field must not contain more than one of <strong>the</strong> following, which may appearonly once:0 (zero)* (asterisk)$ (dollar sign)4. If <strong>the</strong> rightmost character in <strong>the</strong> mask field is an R, <strong>the</strong> next character to <strong>the</strong> leftshouldbe a C, in order to edit with CR (credit). Both characters will be blanked if<strong>the</strong> source field is positive. If <strong>the</strong> rightmost character in <strong>the</strong> mask field is - (minus),it will be blanked if <strong>the</strong> source field is positive.5. <strong>All</strong> numeric, alphabetic, and special characters may be used in <strong>the</strong> mask field. <strong>All</strong>characters that do not have special meaning will be left in <strong>the</strong>ir original position in<strong>the</strong> mask field during <strong>the</strong> edit.More detailed information may be found in <strong>the</strong> EDIT flowchart and listing.

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

Saved successfully!

Ooh no, something went wrong!