Search found 1 match

by patrickhanagan
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: 12902

REXX CONVERT PACKED DECIMAL routine is great!

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 '-'...