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



As I understand things, parms do not have an address until the program
is called.  (Calling by reference)  I think you could try changing it to
VALUE or point it to some other 20 byte area and change the value of
ParmPointer as your first line.  

================

I have written a program that accepts a qualified filename as the only
parameter.  My intent was to create a DS, with two fields, object name,
10 Alpha, and lib name, 10 Alpha.  I then wanted to overlay this data
structure over the entry parm, so that I can access the two components
of the entry parm (which I have validated to contain the desired data).

I have the following declared (SRCXFER is the name of the program):

     D SRCXFER         PR
     D  SrcFile                      20A
     D SRCXFER         PI
     D  SrcFile                      20A

Then I have declared a pointer:

     D  ParmPointer                    *   Inz(*Addr(SrcFile))

Then the data structure:

     D LibFile         DS                  Qualified
     D                                     Based(ParmPointer)
     D  ObjName                      10A
     D  LibName                      10A

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


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.