Hi Folks,
Please advise how to convert the amount fields to packed decimal
The below file contains Header,Detail(starting with M) and trailer(staring with 8) records
***************************** Top of Data ******************************
902162011
M020123 02091 96000-CCCCC CCCCCCCC CCCCCC US XXXXXX XXXX
M020ABC 02090 120082-CCCCC CCCCCCCC CCCCCC US XXXXXX
M021PQR 02093 78426-CCCCC CCCCCCCC CCCCCC US XXXXXX XXX
M022UVW 02094 320000-CCCCC CCCCCCCC CCCCCC US XXXXXX XXXXXX
88888888888800004 614508-
******************************************************************************
Detail(starting with M) records has amount filed from 15th postion to 25th position.This amount needs to be
packed to 5 bytes, the -ve sign should store as D in the last half byte.
Please ask me incase of any questions?
Thanks