|
> When I attempt to compile, I get an error that states that the > initial address of the pointer (PARMPOINTER) is not valid. What am > I doing wrong Simply put - cannot initialize to an unknown address. The address of the parameter is not known until you are called - it is after all the address of the variable in the storage of the caller and can therefore be different on each and every call. You can do what you want by using %Addr to set the pointer within your logic. However - if you are on V5R1 or later a "better" solution is to use LIKEDS to describe the parameter itself. D SRCXFER PI D SrcFile LikeDS(LibFile) Then the data structure: D LibFile DS Based(pNeverUsed) D ObjName 10A D LibName 10A In your code you specify SrcFile.ObjName, etc. Jon Paris Partner400 www.Partner400.com
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.