Q

RPGILE instruction to truncate

With the following RPGILE instruction I receive the message: The target for a numeric operation is too small to

hold the result (RNQ0103). When the result contains too many digits for the receiving field. Eval(RH) Result = Amount / Divider. I thought that option (R) in eval could handle the truncation, but not at all. Is there a way to allow this truncation?

Sometimes, old ways work best:

 FMT C   CL0N01Factor1+++++++Opcode&ExtFactor2+++++++Result++++++++
0070.01 C     Amount        Div(h)    Divider       Result       

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

Search400's targeted search engine: Get relevant information on RPGILE.


This was first published in June 2002

Dig deeper on RPG iSeries programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchEnterpriseLinux

SearchDataCenter

Close