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



That exactly matches my opinion. But the STRPREPRC utility was born in 2000, when there were only a few H-spec keywords. Furthermore it is a universal utility that can also be used with other source types, such as DSPF and PRTF or PGM and SRVPGM.

Last but not least you can use it to "compile" non-source objects, such as data areas like this:

/*---------------------------------------------------------------*/
/* STRPREPRC Compile Options: */
/* >>PRE-COMPILER<< */
/* >>CRTCMD<< CRTCLPGM PGM(QTEMP/&OB) + */
/* SRCFILE(&SL/&SF) SRCMBR(&SM); */
/* >>COMPILE<< */
/* >>PARM<< TEXT('Creates: iSphere Version Data Area'); */
/* >>END-COMPILE<< */
/* >>EXECUTE<< */
/* >>CMD<< CALL PGM(QTEMP/&OB) PARM(&LI &OB); */
/* >>CMD<< DLTPGM PGM(QTEMP/&OB); */
/* >>END-PRE-COMPILER<< */
/*---------------------------------------------------------------*/
PGM PARM(&LIB &OBJ)

/* Statements to create a data area */

ENDPGM

Last but not least it can add its job log messages to the EVFEVENT file, which is useful when "compiling" programs and service programs or any other non-source objects.

From the point of view of our development team there must be no objects without source. So we needed a utility, such as STRPREPRC, for compiling our non-source objects as well as for display and printer files.

Thomas.

Am 18.01.2022 um 18:19 schrieb Mark Waterbury:
My general recommendation is, anything that can be specified on an H-spec or CTL-OPT should be specified there, rather than "externally" (e.g. using a preprocessor, etc.)


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.