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



If you're too old to learn new and better things Alan....

:D

Charles

On Tue, Jul 26, 2022 at 9:37 AM Alan Campin <alan0307d@xxxxxxxxx> wrote:

Sorry Jon. Way too old to be switching to new screen design aids. SDA seems
easy to me. The monster is RLU. What a mess that is.

On Tue, Jul 26, 2022 at 6:32 AM Jon Paris <jon.paris@xxxxxxxxxxxxxx>
wrote:

SDA? Today Alan? For those of us who know it, its perversities are
second nature. But for a newbie it is tough because it really doesn't
work
like anything else in the universe.

For a newbie I would suggest either RDi which has a great screen
designer,
or if using Liam's VS Code extension for IBM i as your editor (which is
where you should start if the shop won't buy RDi) use the new Preview
option which you can find here:

https://marketplace.visualstudio.com/items?itemName=HalcyonTechLtd.vscode-displayfile
<

https://marketplace.visualstudio.com/items?itemName=HalcyonTechLtd.vscode-displayfile



Jon P.

On Jul 25, 2022, at 5:48 PM, Alan Campin <alan0307d@xxxxxxxxx> wrote:

Have you tried SDA (Screen Design Aid)? There is a bit to learn but it
will
let you see a screen as it looks.

For the display file that you have defined, go to option 3 in PDM to
display your display file source. Take option 17 and you should see a
list
of record formats that you have defined. Take option 12 on the record
format to display the screen. F4 will show you a list of fields in the
record. F6 will sort them by location. If you wanted to define a
numeric
5,0 field for input and output (Both) you would type +9(5,0) and it
will
define the field for you where the cursor is. Putting ? in front of the
field lets you rename it. Putting * in front of field allows you to
specify
editing on the field. I always use a different name for the fields on
my
screens. For a standard, I B_ for Both fields, I_ for input, O_ for
output
and H_ for hidden fields. For example, if I had an order # that I
wanted
to
input to, I would do something like B_ORDER#.

Anyway, it would allow you to see what the screen looks like..


On Mon, Jul 25, 2022 at 1:47 PM Brian Parkins <
goodprophet.bp@xxxxxxxxx>
wrote:

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

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

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

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

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