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



This is a working example:

d ritorno         s           1000                   
d len             s             10i 0                
d formato         s              8    inz('PGMI0100')
d pgmx            s             20                   
d errori          s             20                   
d pgmi            s             10                   
d gruppo          s             30                   
c     *entry        plist                            
c                   parm                    pgmi     
c                   parm                    gruppo   
c*                                                   
c                   movel     pgmi          pgmx     
c                   move      '*LIBL     '  pgmx     
c                   eval      len=%len(ritorno)      
c                   clear                   errori   
c                   call      'QCLRPGMI'             
c                   parm                    ritorno  
c                   parm                    len      
c                   parm                    formato  
c                   parm                    pgmx           

c                   parm                    errori     
c*                                              
c                   eval     
gruppo=%subst(ritorno:369:%len(gruppo))
c                   eval      *inlr=*on       
c                   return                

very simple and doesn't handle errors.

HTH
Marco
--- Vern Hamberg <vhamberg@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:

> Luis
> 
> That information is retrieved using the Retrieve Program
> Information 
> (QCLRPGMI) API, in either format PGMI0100 or PGMI0200.
> This API gets you 
> the program attributes that is fixed, whereas QBNLPGMI
> returns data that is 
> variable in length and count. They COULD have been
> combined, I suppose, but 
> I think this is easier to program with.
> 
> Regards
> Vern
> 
> At 09:14 AM 9/6/2004, you wrote:
> >Hi,
> >
> >Is there a way to retrieve the Activation Group value of
> a RPG ILE
> >program using an API?
> >
> >I?ve been using the QBNLPGMI API for retrieving some
> compilation
> >parameters, but can?t find the one
> >related to *ACTGRP
> >
> >Thanks,
> >
> >Luis Rodríguez
> >----------------
> >   Luis Rodriguez
> 
> 
> 
> --
> This is the Midrange Systems Technical Discussion
> (MIDRANGE-L) mailing list
> To post a message email: MIDRANGE-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit:
> http://lists.midrange.com/mailman/listinfo/midrange-l
> or email: MIDRANGE-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the
> archives
> at http://archive.midrange.com/midrange-l.
> 
> 



                
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

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.