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



The *ALL option is only applicable for Multiple Occurrence Data Structures. If it was ever accepted against a regular (i.e. non-Occurs) DS then I suspect that is/was a compiler bug.

It is needed for those because only the current occurrence is normally accessible at any given time - why is why they are such a PITA as parameters! *ALL says to operate on all occurrences no matter what the current one is.

CLEAR against a DS or DS array will always clear all levels because all levels are always in scope.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Jul 13, 2017, at 4:40 PM, Vinay Gavankar <vinaygav@xxxxxxxxx> wrote:

I ran a test in debug, and it looks like "Clear XrefMCH(XC).MCHWnd; " will
do want I am looking for, which is to clear all the elements of MCHWnd in
the XRefMCH(XC) occurence.

On Thu, Jul 13, 2017 at 4:19 PM, Vinay Gavankar <vinaygav@xxxxxxxxx> wrote:

That's funny. I actually have Clear *ALL XRefMCH as a fixed format
statement, which does not give error. When I put it in free-form, it gives
me an error.

On Thu, Jul 13, 2017 at 4:11 PM, <dlclark@xxxxxxxxxxxxxxxx> wrote:

"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 07/13/2017 04:00:48
PM:
@Dave: I have Clear *ALL XREFMCH at another place in the same program,
and
it compiles fine.

Just telling you what the documentation says. ;-) Besides, both
these give me an error:

Clear *ALL XRefMCH;
Clear *ALL XRefMCH(XC).MCHWnd;

And these do not:

Clear XRefMCH;
Clear XRefMCH(XC).MCHWnd;


Sincerely,

Dave Clark
--
int.ext: 91078
direct: (937) 531-6378
home: (937) 751-3300

Winsupply Group Services
3110 Kettering Boulevard
Dayton, Ohio 45439 USA
(937) 294-5331








On Thu, Jul 13, 2017 at 3:52 PM, <dlclark@xxxxxxxxxxxxxxxx> wrote:

"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 07/13/2017
03:38:51
PM:
I am getting a compilation error on the following. Not sure what
needs
to
be corrected. here is the relevant code:

D MCH_TEM DS QUALIFIED TEMPLATE
D MCHEffDate 8S 0
D MCHThruDate 8S 0
D MChoice 1

D XRefMCH DS QUALIFIED DIM(999)
D ClientPlan 19
D MCHWnd LIKEDS(MCH_TEM)
DIM(99)


1709.00 Clear *ALL XRefMCH(XC).MCHWnd ;

*RNF5393 20 170900 Factor 2 of a CLEAR or RESET operation is not
valid.

If I remove *ALL, it compiles. Any help is greatly appreciated.


*ALL is not valid for arrays nor for array data structures
(DIM
keyword). *ALL is for tables or for multiple-occurrence data
structures
(OCCURS keyword),


Sincerely,

Dave Clark
--
int.ext: 91078
direct: (937) 531-6378
home: (937) 751-3300

Winsupply Group Services
3110 Kettering Boulevard
Dayton, Ohio 45439 USA
(937) 294-5331




************************************************************
*********************************
This email message and any attachments is for use only by the named
addressee(s) and may contain confidential, privileged and/or
proprietary
information. If you have received this message in error, please
immediately notify the sender and delete and destroy the message and
all
copies. All unauthorized direct or indirect use or disclosure of this
message is strictly prohibited. No right to confidentiality or
privilege
is waived or lost by any error in transmission.
************************************************************
*********************************
--
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: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://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: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://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 email message and any attachments is for use only by the named
addressee(s) and may contain confidential, privileged and/or proprietary
information. If you have received this message in error, please
immediately notify the sender and delete and destroy the message and all
copies. All unauthorized direct or indirect use or disclosure of this
message is strictly prohibited. No right to confidentiality or privilege
is waived or lost by any error in transmission.
************************************************************
*********************************
--
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: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://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: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://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.