|
Rob Sure, why not? First, the parallel to extensions on the PC does not work, at least for me. Otherwise I should have names like ORD500PGM, which becomes ORD500PGM.PGM in IFS. That's not the same thing. The reason I'd use suffixes is to help tell what the source type is. It's similar in function to .c and .cpp for C/C++ source, .bas for BASIC, .pas for Pascal, etc. You also see the attribute in PDM, just like in WRKOBJ. But in a mapped drive, that attribute does not appear, I believe. And I've not used WDSC enough yet to have an opinion. I'm still inclined toward separate source files. The varying lengths move that way. I like to minimize exceptions, and I'm not sure CL tolerates a longer record length. QMQRY definite requires 91, will not work with longer. So I generally make a rule, for me, of separate files. Others where I work do not. We have a mix, actually. Bottom line, this is probably a religious argument and I choose to cease and desist (after this post). There's not a real right/wrong IMO (except for the *DOC.DOC kind of thing). In all of this, take what you like and leave the rest. Find something that works and doesn't get in the way. Regards Vern At 03:18 PM 10/9/02 -0500, you wrote:
Names that reflect the source types?
like
ORD500R for rpg
ORD500C for CL
ORD500D for display file
ORD500O for printer output?
And if you do a WRKLNK '/QSYS.LIB/MYLIB.LIB/ORD500*.*' you'll see:
/QSYS.LIB/MYLIB.LIB/ORD500C.PGM
/QSYS.LIB/MYLIB.LIB/ORD500D.FILE
/QSYS.LIB/MYLIB.LIB/ORD500O.FILE
/QSYS.LIB/MYLIB.LIB/ORD500R.PGM
And if you do a WRKOBJ MYLIB/ORD500* you'll see:
Object Type Library Attribute
ORD500C *PGM MYLIB CLP
ORD500R *PGM MYLIB RPG
ORD500D *FILE MYLIB DSPF
ORD500O *FILE MYLIB PRTF
Question, when you create stuff on your PC do you end up with names like:
MYPGMEXE.EXE
TESTDOC.DOC
QUESTIONSDOC.DOC
OTHERDOC.DOC
FINANCIALSXLS.XLS
RESUMEWP1.WP1
Rob Berendt
Vernon Hamberg
Have separate source members. It did not used to be necessary, but
nowadays, because of record lengths, it is. RPGLE needs a record length of
112, older RPG needs 92. QMQRY's need 91, QMFORMs need 162 or some such.
I would still use distinct names, even in separate source files, since the
resulting objects, whether modules or programs or service programs, still
need distinct names. This gives you the chance to make names that reflect
the original source types - might be useful.
Regards
Vern
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.