Using new version to build a json

Started by michaelgreer, August 12, 2024, 05:15:26 PM

Previous topic - Next topic

michaelgreer

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.

Mike King

PxPlus only had JSON support as of version 11.  Version 9 is from 2010.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

michaelgreer

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