PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: Michael Greer on August 12, 2024, 05:15:26 PM

Title: Using new version to build a json
Post by: Michael Greer on August 12, 2024, 05:15:26 PM
I have a program that I can execute from the linux command prompt like this:
/u/pvx19/pxplus build_json -arg 01 123456  where the parameters point to a doc number that I want to dump.  This works just fine.  However, if I do this under pvx 9:
x=sys("/u/pvx19/pxplus build_json -arg 01 123456") I discover that the print dim(list edit js$) throws an error 98.  I tried putting the first command in a shell script and then this:  x=sys("myscript.sh") but the same thing happens.

Any insight here is appreciated.
Title: Re: Using new version to build a json
Post by: Mike King on August 12, 2024, 05:31:05 PM
PxPlus only had JSON support as of version 11.  Version 9 is from 2010.
Title: Re: Using new version to build a json
Post by: Michael Greer on August 12, 2024, 05:44:54 PM
Mike,

I know that. That is why I'm trying to invoke a newer version from my older legacy install; I realized after that post that my system commands were inheriting PVXLIB as an environment variable; when I addressed that my problem went away.

Michael