• Introducing Dark Mode! Switch by clicking on the lightbulb icon next to Search or by clicking on Default style at the bottom left of the page!

custom dreamwriters

lorser

Member
JDELIST,

I am a programmer and in the process of learning how to create custom
dreamwriters. Does DDS need to be created in SVR (opposed to PDM for
instance) for a Dreamwriter to recognize it and work properly ???

Any info on this subject will be greatly appreciated and helpful. Thanks
in advance.
 

dkahn

Active Member
For a number of reasons you should always use the SVR for your JDE programming. For an experienced RPG programmer new to JDE this can be initially hard to accept (been there, done that). You can of course use PDM to edit your source members but you should always compile through the SVR. For printer files in particular you will not get the full Dream Writer package unless you compile through the SVR.

The SVR also gives you access to the JDE version of the screen and report design aids through option 10. By using the design aid you automatically get the vocabulary overrides created and maintained for you, as well as getting automatic data dictionary support.

Make sure your Case profile is correctly set up and have a read of the Advanced Programming Concepts and Skills manual for more detailed information.

Dave...


Dave Kahn (World A7.3 cum 10)
=========
 

DBelcher

Active Member
If you have not already done so you should go to the Advanced Programming
Concepts and Skills course (APCS) at JDE. This is vital for, at the very
least, one person in the shop to go to it. It is critical in understanding
how JDE is put together and how to modify it. Too often shops new to JDE
will not do this step and they very much regret it later on. Yes, a good
programmer with lots of time will figure out much of the information, but
what shop has that kind of time. Yes, it is a lot of money...but it is very
worthwhile! Convince whoever you have to convince as strongly as you have
to, but someone has to go to the class. We went live Feb 2000 after
preparing for over a year with 2 people going to the basic operations class
and myself going to the APCS. It makes a major difference if you want to
make your life easier with upgrades and SARs. (Pay me now or pay me later!)

Douglas Belcher
KV Pharmaceutical Inc.
St. Louis MO
Opinions expressed are not necessarily those of my employer




Doug Belcher
St Louis MO
Opinions expressed are not necessarily those of my employer
A7.3c10
 

scott_parker

Reputable Poster
I would have to agree with the other 2 opinions given. I use SVR for EVERY program I write. Even the Quick and Dirty ones. If nothing else it shows you were you have source. (Test/Production)

But there is So much MORE that it does. I will admit that I learned RPG with JDE. My first "Boss" was very adamant about me always Coding to JDE standards and well Now I know why. (Thanks Gerry)

I would also recommend to you and anyone else that you get 2 "utilities" off of the download section of the jdelist web site. The first one is.

VTX Data Structure Build - Never calculate the VTX data structure again! This program will read your display or print file, build the VTX structure, and insert it into your RPG program.
Contributed by Daniel Pass

GREAT Utility.

The 2nd one is..
World Writer Data Selection using Dream Writer
Contributed by Derek Aitken

Another Great Utility. It seems that JDE "may" be adding this functionality some time in the future but who knows.

Also if you do any ILE programming SVR can also handle that but you need to make a couple quick mods to the SVR programs.
I have a document on this somewhere so e-mail me directly if you want it.


Scott Parker
Grote Industries, LLC.
WorldSoftware Version 8.1.2 AS/400 V4R5
 

SLewis

Member
I very much agree with Doug's viewpoint. JDE has certain standards and ways
of doing things. If you do not adhere to their way of doing things, you'll
quickly find yourself in a bigger hole trying to dig yourself out from under
the continueing backlog of change requests that your users are creating as
well as now finally coming to the realization that taking the APCS course in
the first place might have been money better spent.

Also as Doug mentioned, if the programmers do not adhere to JDE standards
when making changes, then what should be a relatively simple cum upgrade
becomes like another complete go-live project. There are tools out there to
help figure out source changes that you have made and try to mesh them back
in with the new changes made by JDE, but even they will tell you that you
need to adhere to JDE programming standards if you want the meshed source to
have any chance of making sense. An example of one of the tools is Aldon
Harmonizer.

Stephen R. Lewis
Application Systems Administrator
CCL Custom Manufacturing
Rexdale Plant
11 Bethridge Road
Etobicoke, ON Canada
M9W 1M6
Phone: (416) 740-7400 ext155
Fax: (416) 743-5439
email: slewis@rex.cclcustom.com




Steve Lewis
CCL Custom Manufacturing
11 Bethridge Rd.
Toronto, ON Canada
M9W 1M6

A73 cum 8, 720 V4R4
 

doddsf

Member
Hi, Scott. In your email you mentioned that you have some mods to SVR when
using ILE. Could you share them with me. I would appreciate it.
Thanks
Fred.
 

scott_parker

Reputable Poster
I got a few requests for this. So I am posting it again.
This information came to me from another List Member. (Thanks Eric)


The following programs require some sort of Code change in order to do ILE
in SVR.

P9801 - Lines marked with JSP01 are the additions.

2114.00 C* User is authorized, Compile Object
2115.00 CSR VDFUNC IFEQ 'RPG'
2116.00 JSP01CSR VDFUNC OREQ 'RPGL'
2117.00 CSR VDFUNC OREQ 'CLP'

J98CRTRPG4 - This is a copy of J98CRTRPG with the following
changes.
Lines 22 and 23 Changed to..
0022.00 J98CRTRPG4: PGM (&MEMBER &FILE &PRINTOPT &OBJLIB
&SRCLIB +
0023.00 &CRTOPT &XREF &GENL)


Lines 280.00 though 283 commented out. Lines 284 through 285 added.

0280.00 /* CRTRPGPGM PGM(&OBJLIB/&MEMBER)
SRCFILE(&SRCLIB/&FILE) + */
0281.00 /* SRCMBR(&MEMBER) GENLVL(&GENL) +
*/
0282.00 /* OPTION(&SRCOPT) GENOPT(&GENOPT) +
*/
0283.00 /* REPLACE(*YES) TGTRLS(&TRGT)
AUT(*ALL) */
0284.00 CRTBNDRPG PGM(&OBJLIB/&MEMBER)
SRCFILE(&SRCLIB/&FILE)+
0284.01 SRCMBR(&MEMBER) GENLVL(&GENL)
OPTION(*GEN *SECLVL) +
0285.00 DBGVIEW(*ALL) INDENT('| ') AUT(*ALL)
TGTRLS(&TRGT)
0286.00 MONMSG MSGID(CPF0000 QRG9001) EXEC(DO)


Lines 304.00 though 307 commented out. Lines 308 through 309 added.
0304.00 /* CRTRPGPGM PGM(&OBJLIB/&MEMBER)
SRCFILE(&SRCLIB/&FILE) + */
0305.00 /* SRCMBR(&MEMBER) GENLVL(&GENL) +
*/
0306.00 /* OPTION(&SRCOPT *NOXREF)
GENOPT(&GENOPT) +*/
0307.00 /* REPLACE(*YES) TGTRLS(&TRGT)
AUT(*ALL) */
0308.00 CRTBNDRPG PGM(&OBJLIB/&MEMBER)
SRCFILE(&SRCLIB/&FILE)+
0308.01 SRCMBR(&MEMBER) GENLVL(&GENL)
OPTION(*GEN *SECLVL) +
0309.00 DBGVIEW(*ALL) INDENT('| ') AUT(*ALL)
TGTRLS(&TRGT)
0310.00 MONMSG MSGID(CPF0000 QRG9001) EXEC(DO)


P98CRTPGM

Added in after the Create RPG Program section.

0076.00 C*
0077.00 jsp01C* Create RPGL Program
0078.00 | C*
0079.00 | C PSFUNC IFEQ 'RPGL'
0080.00 | C MOVEL'J98CRTRP'$PGM 10
0081.00 | C MOVE 'G4' $PGM
0082.00 | C CALL $PGM
0083.00 | C* ---- ----
0084.00 | C PARM PSMID
0085.00 | C PARM PSFILE
0086.00 | C PARM CACAS1 PSPRNT 1
0087.00 | C PARM PSOBJL
0088.00 | C PARM PSLIBR
0089.00 | C PARM $CRTOP PSCRT 1
0090.00 | C PARM CACAS2 PSXREF 1
0091.00 | C PARM PSGENL
0092.00 jsp01C END


P98MCMPB
Added Line marked with jsp01
1167.00 CSR VD#OTY CASEQ'DSPF' S005B
1168.00 CSR VD#OTY CASEQ'RPG ' S005A
1169.00 jsp01CSR VD#OTY CASEQ'RPGL' S005A
1170.00 CSR VD#OTY CASEQ'CBL ' S005A
1171.00 CSR VD#OTY CASEQ'ASM ' S005A
1172.00 CSR VD#OTY CASEQ'LF ' S005F


UDC Table 98/FN
Added
04 Character
Code Description
------- ----------------
RPGL ILE RPG Programs




Scott Parker
Grote Industries, LLC
mailto:scott.parker@grote.com





Scott Parker
Grote Industries, LLC.
WorldSoftware Version 8.1.2 AS/400 V4R5
 

dkahn

Active Member
> VTX Data Structure Build - Never calculate the VTX data structure
> again! This program will read your display or print file, build the
> VTX structure, and insert it into your RPG program.

Like many programmers I have my own home-grown version of this and I use it all the time. I also have a utility that can create or re-create the whole of the nasty S998 subroutine just as easily. Would there be any interest in my uploading this to the list? I can forsee some minor national character set difficulties that would need to be addressed first, so would a US based programmer like to volunteer to beta test it and help iron these out first?

Dave...

Dave Kahn (World A7.3 cum 10)
=========
 

scott_parker

Reputable Poster
Contact me directly. I would like to see what you have come up with for the S998. Yes, I would like to "Beta" test it for you.

Scott Parker
Grote Industries, LLC.
WorldSoftware Version 8.1.2 AS/400 V4R5
 

Colin_Hugill

Reputable Poster
Hi All,

Doug Belcher's recommendation has my complete support. The APCS and the
Technical Foundation courses are a "must", dare I say essential, for any JDE
site that wants to have some internal technical support. Attendance at
these courses also helps enormously to make the paradigm shift into the JDE
square of reference.

Regards...... Colin HUGILL




Colin Hugill
Consultant
 

dkahn

Active Member
> I also have a utility that can create or re-create the whole of the
> nasty S998 subroutine just as easily. Would there be any interest
> in my uploading this to the list?

This is now uploaded as CRTS998 and Eric has added it to the downloads page. Many thanks to Scott Parker for patiently testing it.

There's another utility of mine that's been made available at the same time, MODJDESRC, that can colourise/decolourise your source, put in/take out the logic nesting indicators (B1, B2 etc.) and make other cosmetic changes to your RPG/III source.

Both utilities are open source. Any feedback would be very welcome.

Dave Kahn (World A7.3 cum 10)
=========
 
Top