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



Being a one-time COBOL hack I tended to use a "Filler" approach to this kind of stuff. So my old D-specs would likely have been:

D INFDS DS
D 369A
D row 3U 0
D col 3U 0

On Nov 2, 2023, at 4:02 PM, VERNON HAMBERG Owner via RPG400-L <rpg400-l@xxxxxxxxxxxxxxxxxx> wrote:

Jon, have to love how "intuitive - NOT" it is to code like this -


D INFDS DS
D row 370 370U 0
D col 371 371U 0

instead of


dcl-ds infds;
row uint(3) pos(370);
col uint(3) pos(371);
end-ds;



Best good cheer!
Vern


On Thu, 2 Nov, 2023 at 2:25 PM, Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:


To: rpg programming on ibm i

You're right Buzz - sorry.

It has been many years since I coded a D spec other than in an example like this - I've been doing nothing but free-form for a long time. never occurred to me that POS was a free-form only option.


Jon P.

On Nov 2, 2023, at 10:53 AM, Buzz Fenner via RPG400-L <rpg400-l@xxxxxxxxxxxxxxxxxx<mailto:rpg400-l@xxxxxxxxxxxxxxxxxx>> wrote:

Jon,

I may be missing something here, but the fixed-format D spec does not indicate that the POS keyword is valid.

At least RDi doesn't seem to like it...

On Wed, 1 Nov, 2023 at 10:41 AM, Jon Paris <jon.paris@xxxxxxxxxxxxxx<mailto:jon.paris@xxxxxxxxxxxxxx>> wrote:


To: rpg programming on ibm i

Or one could avoid from/to notation and use POS instead which I personally find preferable simply >because no "to" calculation is required. In this case of course there should be no danger of screwing up >the "to" position but I like consistency.

D INFDS DS
D row 3I 0 Pos(370)
D col 3I 0 Pos(372)


________________________________

This electronic mail transmission may contain confidential or privileged information. If you believe that you have received this message in error, please notify the sender by reply transmission and delete the message without copying or disclosing it.
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx<mailto: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<mailto: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<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related questions.


--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx<mailto: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<mailto: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<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related questions.

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



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.