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



I think you override the output position with the variable you want
You need to check in the DSPF listing or DSPFFD output position for ORDSTS and then in the RPG O specs put the ORDER_STS variable like:
ORECFMT_NAME
O ORDER_STS 123



-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Jason Olson
Sent: Wednesday, April 15, 2020 14:13
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>; dfreinkel <dfreinkel@xxxxxxxxxxxxxxxxx>
Subject: Re: How does one rename a field in RPG400 that is a output field only?

A new RPG/400 program? Yikes I don't think I could even code in that anymore.


On 4/14/2020 1:53 PM, dfreinkel wrote:
I have an new RPG/400 program that has 2 both fields and 1 output field. The
compiler gives a QRG4033 error and I believe the error is caused because the
field is an output only field. The compiler fails on the rename of the
field. All other long name fields successfully rename.



IRECFMT_NAME

I ORDER_STS ORDSTS



Don't know if I have ever had this issue before. Too long to remember.



The record format is a subfile control record.



How does one rename a field name such as ORDER_STS to ORDSTS for an output
field?



TIA



Darryl Freinkel

A4G.

Tel: 770.321.8562 Ext 111 | Cell: 678.355.8562




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.