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



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

I tried this suggested way still in spooled file can't see field5 second
decimal position and as mentioned earlier even if it would have been
displayed then also there is not proper space (at least one space) between
footer ( addition of all the values of the field) values of fld5 and fld6.
I do not want to print this spool file and then see this second decimal
value of fld5 and the beginning of the first digit of fld6. I simply want
to see all the fields data properly in the spool file itself, provided we
have increased the length of fld5 from current length 9,2 to 11,2.


Thanks






On Mon, 6 Jun 2022 at 18:13, Jim Hawkins <jhawkins@xxxxxxxxxxxx> wrote:

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.

--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.