|
Just the other day I was thinking along these same lines. My thought was
that if I could soft code the record format in a variable I could move my
subfile setup to a sub procedure and just pass the record format in a
variable as the parameter that way I wouldn't have to write the same
subfile prep code over and over again for each one. Well as I found out,
there is not a way to soft code the record format name. I understand that
this isn't possible the way the compiler looks at DDS and RPG code when
compiling and moving this from a compile time check to a run time check
would introduce a new set of possible errors. But this would go a long
way to allowing for true procedural programming with ILE. It would give
one more reason for people to move towards true ILE programming. So for
now I'll just break up the code as best I can and hard code the 'WRITE'
statements for each and every subfile. What Jerry suggested is about as
good as you can get when externalizing subfile coding.
Thanks
Bryce Martin
Programmer/Analyst I
Ext. 4777
--- This message (including any attachments) is intended only for the use of the
individual or entity to which it is addressed and may contain information that
is non-public, proprietary, privileged, confidential, and exempt from disclosure
under applicable law. If you are not the intended recipient, you are hereby
notified that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this communication in
error, please notify us and destroy this message immediately. ---
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
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.