× 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 need **Free for nested DS though Brad. Just free-form DCLs.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Jun 16, 2018, at 11:13 PM, Bradley Stone <bvstone@xxxxxxxxx> wrote:

Yep, that was it.. I needed **FREE in the all free /copy member.

Pretty slick. Nice to do new projects and try out the new features..
nested DSs... oo laa laa...

Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #20 <https://www.bvstools.com/mailtool.html>: The ability
to specify multiple email routers/relays to make sure emails are sent when
they need to be.

On Sat, Jun 16, 2018 at 4: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 ...

Follow-Ups:
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.