Compiling User Dump and Load Programs

KMoody

Member
Progress: 10.2b SP7
OS: SUSE Linux Enterprise Server 11

I've tried to run the following script in _progres:

Code:
compile [DLC_path]/src/prodict/dump/_dmpuser.p save into [some_other_dir]

And I get the following error:

Code:
  │                       ** "fn" was not found. (293)                       │
  │ ** /usr/dlc/src/adecomm/_runcode.p Could not understand line 725. (193)  │
  │         ** Unable to understand after -- "? cObjectType". (247)          │
  │ ** /usr/dlc/src/adecomm/_runcode.p Could not understand line 725. (198)

Line 725 refers to this code in _runcode.p:
Code:
cObjectType = {fn getObjectType PersistProcDelete.hProc} NO-ERROR.

Why am I getting this error? Why does _dmpuser.p invoke _runcode.p in the first place?
 
PROPATH=.:/usr/dlc/src
My current directory is the compile directory.

I don't need to compile _dmpuser.p itself, but I do need to run it from within another program like this:

dump_tables.p:
Code:
.......
{ /usr/dlc/src/prodict/user/uservar.i "new" }
{ /usr/dlc/src/prodict/dictvar.i "NEW" }
USER_env[6] = "no-alert-boxes".
USER_env[2] = "file".
RUN /usr/dlc/src/prodict/dump/_dmpuser.p "new".

When I try to compile this code, I still get the same error.
 
Last edited:
Code:
{fn ...}

includes the file named 'fn' and passes the next parts as preprocessors.

The 'fn' file is available in $DLC/tty and contains:

Code:
&IF "{2}":U = "":U &THEN dynamic-function("{1}":U IN TARGET-PROCEDURE) &ELSE dynamic-function("{1}":U IN {2}) &ENDIF

If your run / compile cannot find the source 'fn' it is because you do not have $DLC/tty in your propath.

And personally I would probably have written that as:

Code:
dynamic-function( "{1}":U IN &IF "{2}" > "" &THEN {2} &ELSE TARGET-PROCEDURE &ENDIF )
 
That's odd... The tty folder exists, but the fn file isn't there. Is there something we need to reinstall?
 
Thanks, Tamhas. I'm having trouble finding fn's procedure library. Where can I look this up? Is there any documentation that lists libraries and their procedures?
 
Yes, I ran that list command on every library I had, but I still didn't find it. Looks like I was missing some libraries.

I downloaded the 10.2B SP07 Development Source Code. The fn file was under the wrappers folder. Once I added the wrappers folder to my source directory and added /usr/dlc/src/wrappers to my PROPATH, _dmpuser.p compiled just fine. :)

Thank you all for your help!
 
This seems overly complex.

If you just want to dump _user why not just create your own custom program:

Code:
/* dump_user.p
 */

output to value( "_user.d" ).

for each _user no-lock:
  export _user.
end.

output close.

return.
 
Back
Top