×
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 see a few problems with this.
- Almost all of DDS has to be coded in uppercase, unless it's in quotes,
e.g. COLHDG('Jerry')
- As others have pointed out, you have left the Decimal Positions blank
- so FLD1 would default to Character
- The keyboard shift numeric 'N' applies to input only and has no
bearing on output
You may have more luck with:
A FLD1 2S 0O 7 39
- but this supposes you don't have any overlapping fields which would
result in FLD1 not being displayed. Don't forget you MUST leave at least
one space between fields in a Display File, (so the attribute bytes
don't overlap).
To respond to your earlier query, DDS has no concept of Packed Numeric
fields, only Signed Numeric (Zoned Decimal). (You cannot display/print a
Packed field because each byte - i.e. character position - contains
2-digits.) RPG IV automagically redefines Signed Numeric field in DDS to
Packed Decimal in the program. (Look at the compiler listing to prove it
to yourself.)
Time to hit the manuals and programming guides?
Brian.
On 25/07/2022 15:42, jerry ven wrote:
i am also trying to define my field directly for the screen like below
only difference is i am defining like below without using EDTCDE-
A Fld1 2N O 7 39
But i don't see my field name 'FLD1' on the screen like above, whereas
within the same DDS other fields which are defined using reffld and have
some text under Functions their data is displayed as is on the screen.
So not sure how the field name could be displayed here if I am not using
REFFLD and Functions.in the DDS of display file.
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.