Ask the Expert

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       


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

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: