How to get the remainder from the operation of division.
book
Article ID: 52756
calendar_today
Updated On:
Products
CA PanAudit Plus
CA Easytrieve Report Generator
CA PAN/SQL
CA Endevor Software Change Manager (SCM)
CA Endevor Software Change Manager - Natural Integration (SCM)
CA Endevor Software Change Manager - ECLIPSE Plugin (SCM)
CA Endevor Software Change Manager - Enterprise Workbench (SCM)
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