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



>Your code isn't incorrect, but have you ever tried to get the addres of a
CONST parameter ?
I guess I never use CONST, I always use VALUE.  What is the reason you are
using both *Omit and *NoPass? I put together the following and it works fine
for me.

     H DFTACTGRP(*NO)

     D ValidHnd        PR
     D Parm1                          5U 0 CONST
     D Parm2                          5U 0 CONST OPTIONS(*OMIT: *NOPASS)
      /Free

       ValidHnd(1:1);
       ValidHnd(1: *Omit);
       ValidHnd(1);
       *InLR = *On;

      /End-Free


     P ValidHnd        B                   Export
     D ValidHnd        PI
     D Parm1                          5U 0 CONST
     D Parm2                          5U 0 CONST OPTIONS(*OMIT: *NOPASS)

     D text            S             20A
      /free

       Select;
       When %Addr(Parm2) = *Null;
         text = '*Null works';
       When %Parms > 1;
         text = 'Parm count works';
       EndSl;
       Return;

      /end-free
     P ValidHnd        E

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.