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.
91
Programming / Re: XCOPY
« on: July 02, 2020, 12:53:28 PM »
Jeff,
I don't know if this will help, but just because xcopy doesn't lock a file doesn't mean it can copy a locked file. So, this works:
0005 cmd$=env("COMSPEC")+" /C xcopy jmg.txt back"
0007 open (hfn)"jmg.txt"
0010 y=sys(cmd$)
0015 print y
But this doesn't:
0005 cmd$=env("COMSPEC")+" /C xcopy jmg.txt back"
0007 open lock (hfn)"jmg.txt"
0010 y=sys(cmd$)
0015 print y
Michael
I don't know if this will help, but just because xcopy doesn't lock a file doesn't mean it can copy a locked file. So, this works:
0005 cmd$=env("COMSPEC")+" /C xcopy jmg.txt back"
0007 open (hfn)"jmg.txt"
0010 y=sys(cmd$)
0015 print y
But this doesn't:
0005 cmd$=env("COMSPEC")+" /C xcopy jmg.txt back"
0007 open lock (hfn)"jmg.txt"
0010 y=sys(cmd$)
0015 print y
Michael
92
Programming / +B / -B behavior
« on: June 11, 2020, 11:45:36 AM »
I am attempting to cause a log file to not buffer. From what I can tell from the docs is that -B should be used in an open, like open(hfn,opt="-B")mylog.txt.
This does not seem to be working. Am I misinterpreting the documentation?
This does not seem to be working. Am I misinterpreting the documentation?
93
Language / Jaws Integration
« on: June 09, 2020, 12:50:58 PM »
We have a customer with some visually impaired employees (legally blind). The use a product called Jaws which can read information from a windows dialogue. I have to issues which I would like to get some input on. (PVX 15.1). Jaws can read the windows handle of various controls, but all windx windows are seen by it as having a handle of 0. Any ideas on why this would be? Jaws will also read tool tips. I have these set up, but as you know they only display when the mouse is hovering over the various controls. Is there a way to get these tool tips to display when the control has focus? This would solve the problem. From a 2000 ft perspective, has anyone worked with Jaws? Thanks! Michael
94
ODBC / Re: PXPlus SQL ODBC Driver w/ Command line
« on: April 22, 2020, 12:38:09 PM »
Devon,
One more question. I am running the command line client on the same system as the database so I do not have the sql server running and it seems to work just fine *except* is appears not to see the non-normalized file. Is that possible to enable, and even better, is there some documentation on the command line client that I somehow missed.
Thanks!
Michael
One more question. I am running the command line client on the same system as the database so I do not have the sql server running and it seems to work just fine *except* is appears not to see the non-normalized file. Is that possible to enable, and even better, is there some documentation on the command line client that I somehow missed.
Thanks!
Michael
95
ODBC / Re: PXPlus SQL ODBC Driver w/ Command line
« on: April 20, 2020, 03:00:44 PM »
Devon,
You nailed it. Only thing I had to do was put 01 as '01'. Then, perfect.
Thanks!
You nailed it. Only thing I had to do was put 01 as '01'. Then, perfect.
Thanks!
96
ODBC / Re: PXPlus SQL ODBC Driver w/ Command line
« on: April 17, 2020, 04:47:14 PM »
Devon,
here, with all variations on the "= 01" part:
/usr/pxpsqlodbc/pxpsql -d /infor/facts78 select company,library from SM_UNFORM_LIBRARY_PATHS where company = "01"
This works just fine without the where clause.
here, with all variations on the "= 01" part:
/usr/pxpsqlodbc/pxpsql -d /infor/facts78 select company,library from SM_UNFORM_LIBRARY_PATHS where company = "01"
This works just fine without the where clause.
97
ODBC / Re: PXPlus SQL ODBC Driver w/ Command line
« on: April 17, 2020, 01:04:26 PM »
James, I have tried 01, '01' and "01". The log always strips them off. In all cases I get the same result in the log. Thanks!
98
ODBC / PXPlus SQL ODBC Driver w/ Command line
« on: April 17, 2020, 10:51:28 AM »
I have attempted installing both the 7.00 and 6.10 version of the above on a Redhat 7 system.
cat os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.8 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.8"
PRETTY_NAME="Red Hat Enterprise Linux"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.8:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.8
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.8"
From the command line I can do a list command and a select command with no problem, but as soon as I add a where clause I see this:
The driver reported the following diagnostics whilst running ODBCExecDirect
S0000:1:1019:[PxPlus][SQL ODBC Driver]Internal error
I added -l odbc.log and it has this:
Driver version: 7.00.0000
ISAMOpen: UserID='root', length=4
------------------------------
select company,library from SM_UNFORM_LIBRARY_PATHS where company = 01
GetAccessibleTables:<table=SM_UNFORM_LIBRARY_PATHS> Open catalog(s) /infor/facts78 , available 710 table(s)
<SM_UNFORM_LIBRARY_PATHS> Open file /infor/facts78/data/SM/SMUNFP, maxksz=20
ISAMCloseTable: Closing table SM_UNFORM_LIBRARY_PATHS - 0 file reads, 0 re-reads, 0 writes, 0 removes
CACHE STATS - 0 reads, size 2048 estimated, 0 used
ISAMClose
This is so close to working as I need it, but obviously this last needs to work.
Any input?
Michael
cat os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.8 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.8"
PRETTY_NAME="Red Hat Enterprise Linux"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.8:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.8
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.8"
From the command line I can do a list command and a select command with no problem, but as soon as I add a where clause I see this:
The driver reported the following diagnostics whilst running ODBCExecDirect
S0000:1:1019:[PxPlus][SQL ODBC Driver]Internal error
I added -l odbc.log and it has this:
Driver version: 7.00.0000
ISAMOpen: UserID='root', length=4
------------------------------
select company,library from SM_UNFORM_LIBRARY_PATHS where company = 01
GetAccessibleTables:<table=SM_UNFORM_LIBRARY_PATHS> Open catalog(s) /infor/facts78 , available 710 table(s)
<SM_UNFORM_LIBRARY_PATHS> Open file /infor/facts78/data/SM/SMUNFP, maxksz=20
ISAMCloseTable: Closing table SM_UNFORM_LIBRARY_PATHS - 0 file reads, 0 re-reads, 0 writes, 0 removes
CACHE STATS - 0 reads, size 2048 estimated, 0 used
ISAMClose
This is so close to working as I need it, but obviously this last needs to work.
Any input?
Michael
99
Programming / Re: List box column sort
« on: April 11, 2020, 02:43:13 PM »
Ken,
That is what I did. I just named the property wrongly in my post. FYI this is in a FACTS search window where I was trying to achieve it. Coded an alternative. Thanks!
That is what I did. I just named the property wrongly in my post. FYI this is in a FACTS search window where I was trying to achieve it. Coded an alternative. Thanks!
100
Programming / List box column sort
« on: April 10, 2020, 02:19:47 PM »
I have a listview report style control for which I am trying to enable the lv'clickonhdrsort propery. I set that property to 1, and it reports back as one, but I do not get sorting. I'm sure there is another property that I need to adjust, but for the life of me I cannot figure out what it might be. I am seeing this at different PxPlus releases.
101
ODBC / ODBC fail w/ Office 2016 when using ORDER BY.
« on: March 25, 2020, 09:23:33 AM »
Customer is running ODBC 5.20.0002. Recently upgraded to Office 2016. Queries ran with earlier versions of excel that contained an "ORDER BY" clause. Now the are failing and reporting "[PxPlus][ODBC Driver][FILEIO]No data found. When the order by is removed the query executes. Has anyone dealt with this?
102
Programming / 2 gig string/serial file limit.
« on: February 05, 2020, 10:10:34 AM »
Has anyone figured out a clever way to bypass the limit on writing serial files larger than the 2 gig limit. I can do it with a shell script on *nix, but I don't really want to pursue that. I'd like something that is O/S agnostic and will work in *nix and windows.
103
ODBC / Unknown PXPIO Opcode - 0
« on: January 03, 2020, 10:42:16 AM »
Running PxPlus file server ver:5.20.0002 on linux I am getting the above error on one SQL query. Any insight as to what this might be telling me?
104
Language / Re: Excel object commands issue
« on: November 06, 2019, 05:35:48 PM »
This is a bit of a longshot, but in my experience working with excel, it is frequently looking for quote text. So, the first thing I would try would be let TABLE=TABLE_CACHE'CREATEPIVOTTABLE("""Chart!A1"""). Good luck.
105
Language / Re: Embedded I/O program?
« on: October 31, 2019, 11:01:56 AM »
Do this:
open(hfn)"filename"
print fin(lfo,"IO_Program")
Michael
open(hfn)"filename"
print fin(lfo,"IO_Program")
Michael