|
Mike, if you don't understand subprocedures I would suggest that rather than just "jump in" you start by reading the intro that you will find in the RPG Redbook "Who Knew You ....." at www.redbooks.ibm.com. There are many things you can learn to do simply by trying it, but I'm not convinced that subprocedures are on the list unless you have a background in (say) C or Pascal. One of the things you need to study is the difference between local and global variables. If QAHSTDS is defined within a subprocedure, then it cannot be referenced _in_any_way_ from outside that procedure. Since prototypes are at the global level - the compiler cannot "see" the definition of QAHSTDS - hence the error. All variables defined in subprocs are local to the subproc. Jon Paris Partner400
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.