How to get the remainder from the operation of division.
book
Article ID: 52756
calendar_today
Updated On:
Products
PanAudit Plus
Easytrieve Report Generator
PAN/SQL
Endevor
Endevor Natural Integration
Endevor - ECLIPSE Plugin
Endevor - Enterprise Workbench
Issue/Introduction
Description:
CA Easytrieve does not have a remainder function. The below code will give the remainder result.
Solution:
FILE FILEA
A-1 1 3 N
A-RESULT W 5 N 2
A-REMAIN A-RESULT +3 2 N 2
*
JOB INPUT(FILEA)
A-RESULT = A-1 / 3
Environment
Release: EDBMSU00200-6.4-Easytrieve-Report Generator-Option for DB2-MSU
Component:
Feedback
thumb_up
Yes
thumb_down
No