Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert a string into a numeric value

Status
Not open for further replies.

rafs

Programmer
Oct 2, 2001
29
PT
Is it possible to convert a string to a numeric value using AS/400 query tool (strqry)? How?
thanks

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

Rafael
 
Hi Mike,
i don't know much rpg language. Can you help me?
tanks.

Rafael
 
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
[pc2]

Please, if you find my post useful, let me know. [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top