|
On Jun 16, 2018, at 11:04 PM, Bradley Stone <bvstone@xxxxxxxxx> wrote:
Thanks. I did try things out, but it didn't quite work.. it didn't seem to
recognize **FREE, but your explanation makes sense.
I did find, however, that it also works just fine starting in position
5/6/7 (like "old" RPG) with mixed /free non-free /copys. Of course the
/free copys also started in position 6. Maybe they need *FREE too to start
in position 1
I'm going to mess around some more to see if I can get it working with
*FREE (this is on V7R3 with second to last TR I believe, compiling to V7R2).
Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #12 <https://www.bvstools.com/mailtool.html>: Both Text
and HTML email support
On Sat, Jun 16, 2018 at 1:30 PM Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:
The basic rule for **Free is that each and every source member has its own--
format.
So - if a **Free includes a /Copy the copy source is assumed to be
semi-free (i.e. NOT starting in position 1) _unless_ it too starts with
**Free.
So the example you used will work just fine Brad.
Jon Paris
www.partner400.com
www.SystemiDeveloper.com
On Jun 16, 2018, at 5:37 PM, Bradley Stone <bvstone@xxxxxxxxx> wrote:a
I have't tried this yet, but lets say you're using a 3rd party package
with fixed format declarations in a /copy member.
You're trying to keep things mostly free format... will this work? I
haven't tried to dug into it too much yet... Just curious.
**FREE
/copy qcopysrc,imports <---- this is fixed format
dcl-s user char(256) INZ('demo123');
dcl-s password char(256) INZ('demo123');
From the docs:
- When you code **FREE in line 1, the entire source member may only
contain free-form code. If you need any fixed-form statements, such as
TAG statement, or I specs, you can put them in a /COPY file.ability
Does this mean it "should" work with fixed format /copy members?
Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #15 <https://www.bvstools.com/mailtool.html>: The
to add a Footer to each email sent using an IFS stream file.mailing list
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
To post a message email: RPG400-L@xxxxxxxxxxxxquestions.
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related
link: http://amzn.to/2dEadiD
Help support midrange.com by shopping at amazon.com with our affiliate
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD
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.