Problem solve Get help with specific problems with your technologies, process and projects.

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

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.