I want to copy a spool file to a physical file (cpysplf), then run a qry to separate several columns, and transform some of them in numeric data, to make calculus.
In RPG you can use a %substr() (or %subst(), I forgot which) BIF (built-in-function) to parse out your data. So you just read through the file like normal and have several 'eval' and 'move' statements to get get the date how you want into the file.
If you read IBM's RPG manual, it will give you the parameters needed. Mike Wills
AS400 Programmer
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.