Search found 1 match
Search found 1 match • Page 1 of 1
- Tue Nov 02, 2010 1:05 am
- Forum: TSO, CLIST & REXX
- Topic: How to read HEX file and convert it into decimal in REXX.
- Replies: 6
- Views: 12571
hey Dick... your solution works like a champ... thanks very much! here is a REXX (or routine) that you can CALL: Code: /* REXX CONVERT PACKED DECIMAL TO NUMBER */ PARSE ARG PACK_NUM HEX_NUM = C2X(PACK_NUM) SIGN = RIGHT(HEX_NUM,1) NUMBER = LEFT(HEX_NUM,LENGTH(HEX_NUM)-1) IF SIGN = 'D' THEN RETURN '-'...