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



As others have indicated, in O specs you are indicating the end position (I would love to know the reasoning for this, but I digress). So in this situation to increase Fld6 by 2, you will need to move Fld6 and Fld7 both, 2 positions to the right (116 and 132 respectively) you do not need touch FLD5.

You indicated that when you look at the spooled file, you do not see the last decimal of Fld5, I suspect that it is overlaid. If you were to look at the report printed out on paper, that decimal might show up and if Fld6 is using the first digit it will overprint both the last decimal position of Fld5 and the first digit of Fld6.

Including the "Current end positions" in this post was very helpful to clarifying your issue.

As other have said, I would move away from O specs to external PRTF.

Craig Rutledge <www.jcrcmds.com> has some tools that you may find beneficial.

HTH

Regards,

Jim Hawkins
Programmer Analyst
Interkal LLC
Kalamazoo, MI


message: 2
date: Mon, 6 Jun 2022 16:27:41 +0530
from: jerry ven <jerryven95@xxxxxxxxx>
subject: Re: Space between fields in printer file

i tried noting down all these fields end position with respect to increasing the length of one of these fields:-

Current end positions:-

Fld1 Fld2 Fld3 Fld4 Fld5 Fld6 Fld7
50 63 75 89 101 114 130

I want to increase the fld6 length from 9,2 to 11,2 currently.

i did increase it inside the RPGLE program but since we can see considering above space between these 7 fields ideally i should not change the end positions of any of these fields.when i compile and run my rpgle program then i see in the spooled file that at the footer (where i have total of these fields) field5 is getting truncated by one decimal position,also even if it wouldn't have got trunctated then also i was expecting at least one space between the sum of all these fields,here that seems fine with respect to all these fields except between field5 and field6.

So there are two issues: the firestone decimal position of field5 at detail and footer(sum of this field) levels are missing one decimal position if I increase the length of fld6 from 9,2 to 11,2. The second issue is there should be one space between the sum of fld5 and fld6 if both of these fields are displayed correctly at footer level.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.