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



Don't forget that having the latest TR will NOT give you the latest RPG.

RPG features are announced in a similar timeframe to TRs but are not part of them. You need the RPG specific PTFs.

I _think_ that in a **Free source the /copy can be anywhere. But if you do not have **Free at the start of the source member then it must appear in col 7 as normal. Also when in a **Free member you can have no fixed form at all - in theory. I believe that there is an end-free type construct that was put in place to allow the SQL pre-compiler to catch up - but it shouldn't be relied on for the future.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

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:

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
a
TAG statement, or I specs, you can put them in a /COPY file.


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
ability
to add a Footer to each email sent using an IFS stream file.
--
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

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