Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PRTF spec and compiles

107 views
Skip to first unread message

tmnelson

unread,
Aug 28, 2001, 11:51:15 AM8/28/01
to
Is there a way to specify my compiler parms in my prtf file so I don't have
to type them in every time? Something like an H-spec in an rpgle file.

Thanks
Troy


Peter

unread,
Aug 29, 2001, 1:41:41 AM8/29/01
to
"tmnelson" <nels...@uswest.net> wrote in message news:<W8Pi7.661$Hd7....@news.uswest.net>...

If you are compiling from PDM you can create a user defined option
with all the default parameters. Try F16 from within WRKPMBRPDM.
Create a new option and then enter against the sourse member.

Peter

Dale Berta

unread,
Aug 29, 2001, 10:30:35 PM8/29/01
to
If you use RLU, it saves your CRTPRTF command as comments at the bottom of
the source. As long as you use RLU to create the PRTF (via Exit Options), it
will use your saved overrides.

If you don't want to use RLU, the answer is probably no. But, I usually put
the CRTPRTF command as comments at the beginning of the source. Then, when I
want to compile, I display (or edit) the source, copy (using PC5250...) the
create command, and then paste it onto a command entry display. (Using RLU
is probably easier in the long run, but has a learning curve.)

There are other third party products that will do it as well. I don't know
if it is separately available, but Jasmine Developer 2E from CA (formerly
Cool:2E from Sterling Software, formerly Synon/2E from Synon Ltd) comes with
a programmer tools library (Synon/1E tools). One thing that Synon/1E
provides is a compiler preprocessor. You put RTGDTA in your *JOBD, and a
matching routing entry in the batch subsystem where you submit your
compiles; the routing entry specifies the preprocessor program instead of
the usual QCMD. Special comments at the top of the source are instructions
for the preprocessor. Basically you have special comments. Comments without
Y or Z are ignored by the preprocessor. Comments with Y* appearing before
the Z* are executed as commands before the create; useful for doing things
like OVRDBF. Comments with Z* are the actual create command (CRTPRTF, in
your case). Comments with Y* that come after Z* are executed as commands
after the create.

"tmnelson" <nels...@uswest.net> wrote in message
news:W8Pi7.661$Hd7....@news.uswest.net...

Ben Thijssen

unread,
Oct 5, 2001, 1:39:45 PM10/5/01
to

I am using QCMDCHK to get the attributes into a variable. On another
session I create the printerfile. I return to my first session and
perform a QCMDEXE with the attributes retrieved by using QCMDCHK.

See the attached sources. Some things are in dutch, but I am convinced
you will learn fast. So the next time I can reply dutch to you.

Ben Thijssen

rtvprtprm
0 new messages