would give you a PIC S9(7) COMP-3 packed decimal (positive only).my $packed = pack "H*", sprintf "%07dC", $num_records;
Perl can count the records and add the trailer record, too, but I don't know what record format you're using.
In reply to Re: Pack decimal possibility
by ReturnOfThelonious
in thread Pack decimal possibility
by mikeward61
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |