sean@vtinfo.com
In ILE, prototype the C atoi (ASCII to integer) and atof (ASCII to float) and you have the same functionality, without needing to go to V5R2. D atoi PR 10I 0 EXTPROC (\'atoi\') D num$ * OPTIONS(*STRING) VALUE D atof PR 8F EXTPROC(\'atof\') D num$ * OPTIONS(*STRING) VALUE I have coded these in a /COPY member and add it to most every RPG I build. Just my $.02 -Sean
bill_ledford
I just define a data structure and overlay the alpha varaible over the numeric. Any numeric value placed in either field is defined as coded and reflected in the other field, since they share the same area in memory.
[size="1">Code[/size>
Please login to make comments.
User Rating: / 0
PoorBest 

WHITE PAPERS

The following White Papers can be found at the MC White Paper Center

 

 


   MC-STORE.COM