×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Hi Jeff
What positions on the print line are these 2 fields/
What is the width of the print file:-
In the program
In the actual print file
I had something similar - but it turned out that the actual print file was 132 characters wide - but the position of the fields were something like 145 and more
The OVRPRTF was NOT correct
The file name was misspelt - so it was ignoring the OVRPRTF
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Jeff Crosby
Sent: Wednesday, October 16, 2019 2:30 PM
To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: [EXTERNAL] Fields not printing
I'm about to tear my hair out.
There are 2 fields not printing on an output line. First a bit of background.
Warehouse employees scan a barcode and enter a quantity. This gets captured to a raw scans file. The quantity will be something like "5.2"
meaning 5 cases and 2 units. In my program, I parse this into 2 packed
fields:
ITMCS = 5
ITMUN = 2
I print a report, the detail line has both the above fields along with others. But these 2 fields do not print. Edit code is J meaning zero balances print.
First I thought I was overlaying with other fields, but I'm not. This is how far I went:
- I removed every field from the output line except these 2
- entered debug and stepped through
- the following are consecutive statements in the program
// Print it
Exsr OverFlow;
EXCEPT ITMPRT;
// Print any errors
Exsr EditRtn;
// Output
WRITE PICNTREC;
- I viewed both fields before each of the statements, stepping one by one
- even the statements in EditRtn
- both fields have the correct value at all times
- the printed line, ITMPRT, has nothing
- the file with record format PICNTREC has these 2 fields and they are correct in the file
I cannot figure out why they would be blank on the printout. No indicator used to condition that output. Other than compiler bug or something so stupid that I cannot see it.
What am I missing and thanks.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.