PxPlus User Forum

Twitter Twitter Twitter

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - John_S

Pages: [1]
1
Web Services / Web request returns the program
« on: June 18, 2020, 03:18:38 PM »
Hello.  I am trying to implement an API that accepts a part number and verifies that it is on file.  The attached .pxp program is what the API executes.

I am testing the API by executing the following code:
2610 LET URL$="http://cetec.meowintl.com:8088/wal_checkpn.pxp?&prc=AMP&Part=164164-1"
2620 LET URL$=SUB(URL$," ","%20")
2630 LET URL$=SUB(URL$,"|","%7C")
2640 LET URL$=SUB(URL$,"^","%5E")
2650 !
2660 SETERR 2690
2670 CALL "*PLUS/WEB/REQUEST",URL$,X$,Y$,Z$; REM "x$ is data, y$ is response, z$=response header

After 2670 executes X$ is nothing, and Y$ is a listing of my API program.  I don't understand why I am getting a program listing instead of my XML result.  What am I doing wrong?

Version 14.1, RedHat Linux, using the PxPlus web server.


2
Thin Client/WindX / Mark/copy option
« on: February 10, 2020, 04:49:47 PM »
In WindX there is an option to mark/copy text by right clicking the icon, selecting edit, mark/copy, and then highlighting some text on the screen. It then pops up an option to copy the highlighted text to the clipboard.  This is very handy for our users, but they have to go through this procedure every time they want to highlight something and copy it.  Is there an option that will keep this enabled so they don't have to repeat this procedure each time?

3
Language / INPUT in a cron job
« on: December 04, 2019, 02:03:13 PM »
Hello.

We run numerous PxPlus cron jobs on our RedHat server, and many of those programs can also be run on-demand in a regular session. Some of these programs have INPUT statements, and while we try to program them to skip INPUT statements when the user is "batch", we sometimes miss some of them.  This causes the cron process to hang, and it even appears to slow the system down.

Is there a system parameter that would issue a RELEASE if an INPUT statement is encountered in a cron job?  I figure the answer is No, and I don't even know how it would know it is a cron job, but my associate wanted me to post the question.

PxPlus 14.10.

Thanks!

4
Language / Speed up writes to serial file
« on: November 08, 2019, 02:39:58 PM »
Hello,

We have a program that reads our inventory master file and writes some of the data to a tab-delimited file which is later imported into an offline SQL database.  The inventory master file has 2.6 million records in it, and the output serial file is 280mb in size.  It takes the program 45 minutes to over an hour to do all of this (depending on load), and management is asking if I can speed it up.  Since this is essentially a simple read, add data to a string, and write to a serial file, I don't really see any options.

The inventory master file is an EFF file.  I am creating the output serial file using a simple SERIAL command, and using PRINT (1)OUT$ to add data to the file.  I suspect, but don't know, that writing/printing to a serial file is kind of slow.

Any suggestions?

Redhat Linux, PxPlus 14.10 with 150 user license.

5
Programming / 'CC' Parameter
« on: August 02, 2019, 04:29:18 PM »
Hello,

According to the online manual the default setting for the program cache parameter 'CC' is on.  But the example shows 'CC'=0 (Check Cache first) as the default.  Isn't 1 normally the value for on, and 0 for off?

https://manual.pvxplus.com/PXPLUS/parameters/cc.htm

6
Programming / How to use the line below the help menu?
« on: July 27, 2018, 11:01:08 AM »

Hello.  I have been asked to display a message in the blank space between the menu bar and the main window.  It looks like there is a blank line there (see attached screenshot), but I don't know how to put anything there.  They do not want to use the status bar.

Pages: [1]