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



Overlay the array with a character field, and pass the field.  Or do away
with the CL program, and do your OVRPRTF inside your RPG program, then you
can pass the array as is.  You might even be able to pass a pointer to the
array, I THINK the CL program will accept it as a 16 char field.  It just
can't do anything with it.  (Note the caveat here, not having actually tried
to pass a pointer thru a CL program, I can't promise it will work at all
:-)  )
Duane
> -----Original Message-----
> From: fkany@xxxxxxxxxxxxxxxxxx [SMTP:fkany@xxxxxxxxxxxxxxxxxx]
> Sent: Tuesday, July 22, 2003 9:09 AM
> To:   midrange-l@xxxxxxxxxxxx
> Subject:      DCL array variable in CL
> 
> 
> Is it possible to define an array variable in a CL program?  I have an RPG
> program that receives parms(some parms are arrays) and generates a couple
> reports.  I want to call a CL program that will OVRPRTF the generated
> reports to an OUTQ, but I need to pass the array parms into the CL so that
> it can execute the RPG program.  I've looked in my CL book and CL
> programming.pdf's but can't find anything on defining an array.  I'm
> trying
> to pass arrays defined as character.  I asked a co-worker and they said
> something about breaking the array up into fields and passing the all the
> new fields.  We're at V5R2.
> 
> TIA,
> 
> Frank
> 
> _______________________________________________
> 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.

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.