[U2] Exchanging XML data instead of JSON between hosts via RESTful Server

2013-08-21 Thread Peter Cheney
Hi Everyone,

Is it possible to configure a RESTful service subroutine to accept XML as the 
input to one of its defined parameters?

I keep getting the following error:
500: Expected+a+','+or+'}'com.rs.u2.u2rest.marshaller.U2JSONTokenizer@13c33b7

The subroutine has 2 parameters XML.IN in Position 1 and XML.OUT in Position 2. 
Each type is set to string.

Normally this program is used elsewhere in our other services so it is already 
XML ready.

I've converted my test xml to json and tried that. While the error disappears 
the response while valid xml (output from the program) is otherwise empty. (I 
changed the type from string to json too).

If I key in any random string I get the same valid yet empty program response.

So how do I configure the server to pass this xml string straight to the 
subroutine?
Perhaps I need to convert some of the characters (e.g. '/' in the xml below as 
per uri requirements?
Is it possible or am I way off course here?

Sample xml:

f549c4dd-01f4-4b9b-99e2-6dd6862cf364testuser4300GOODNA


Converted to json:

{"batchRequests": {"BatchRequest": {"referenceNumber": 
"f549c4dd-01f4-4b9b-99e2-6dd6862cf364","serviceRequest": {"SERVICE": 
{"-name":"VALID.POST.CODE","PORTAL_USER_ID": "testuser","POSTCODE": 
"4300","SUBURB": "GOODNA"}


Many thanks in advance.
Cheers
Peter




[Description: Description: 
https://www.firstmac.com.au]

Peter Cheney

Universe Engineer

t 07 3017 8837 | f 07 3002 8400

e peter.che...@firstmac.com.au | w 
www.firstmac.com.au



 ---
Note: 
This email (inc all attachments) is for the use of the intended recipient(s) 
only.
Privileged or confidential information may be contained in this communication. 
If you have received this email in error, please notify the sender immediately 
and then delete all copies of this message from your computer network. If you 
are not the intended recipient, you must not keep, use, disclose, copy or 
distribute this email without the author's prior permission. If you are the 
intended recipient and you do not wish to receive similar electronic messages 
from us in future, then please respond to the sender to this effect. 
We have taken precautions to minimise the risk of transmitting software 
viruses, but advise you to carry out your own virus checks on this email and 
its attachments. We do not accept liability for any loss or damage caused by 
software viruses and do not represent that this transmission is free from 
viruses or other defects. 
Firstmac Limited (ABN 59 094 145 963) (AFSL 290600) 
 ---
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


[U2] XLr8 Summer releases for Universe and Unidata [ad]

2013-08-21 Thread Doug Averch
Since this summer we have been releasing a lot features with our XLr8
product at a rapid pace, it was decided to not announce everyone.  We are
combining the last three releases into this announcement.  Below is a
summation of a couple of these amazing features we have added to our
products.

1) XLr8Synchronizer allows your local copy to in sync with the database
copy.  In a programming environment where you have multiple programmers
making change to code whether or not you are using version control, you
might want to know what go changed.  With the XLr8Synchronizer, it will
sync you programs files, procs, paragraphs, dictionaries, and even data.

2) Task tags are something that has been missing in UniBasic programming
forever.  You can now put in TODO's, FIXME's, or company specific tags into
your code.  XLr8Editor will read through your code and build what Eclipse
calls a marker view of them.  In a single view you can see what programs
tasks are still open or require changes.  This something Java programmers
have had for years.  No other UniBasic editor can do this.

Here is our change log:

v3.9.3 - August 20, 2013
   Bugzilla [584] - XLr8Synchronizer tries to sync object code
   Bugzilla [319] - XLr8Editor needs the Task Tags option like java editor
supports
   Bugzilla [587] - XLr8Editor basic code indexer freezes the UI
   XLr8Synchronizer allows for color coding the tags
   XLr8Editor indexer now starts in a second or so instead of 3 minutes.

v3.9.2 - August 16, 2013
   Added new quartz library for Job processing
   Updated documentation for tasks tags
   Bugzilla [319] - XLr8Editor supports tasks tags like Java and other
languages.

v3.9.1 - August 08, 2013
   Remove console message on copy DB to local
   Bugzilla [570] - XLr8Installer delete key is not working
   Bugzilla [296] - XLr8Synchronizer is completed

Regards,
Doug
www.u2logic.com
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] ED PERMISSIONS subroutine

2013-08-21 Thread Dianne Ackerman
Actually that was just an example, the accounts are under a local drive 
U, not C


And from the other suggestions I've received, the accounts are all setup 
under uniadmin and exist in the uv.account file

-Dianne

On 8/20/2013 5:12 PM, Bill Haskett wrote:

Diane:

I use UniData and always put my accounts underneath a level separate 
from @UDTHOME (in "E:\UDAccounts").  I've never had this kind of 
problem, but have had DNS issues.  I wouldn't even contemplate putting 
anything under "C:" so have no idea what can happen there.  :-(


Bill


- Original Message -
*From:* dia...@aptron.com
*To:* U2 Users List 
*Date:* 8/20/2013 1:29 PM
*Subject:* Re: [U2] [UV] ED PERMISSIONS subroutine
c:\level contains about 10 universe accounts.  All are local 
directories, none are remote.

-Dianne

On 8/20/2013 4:24 PM, Aaron Titus wrote:

Hi Diane, a couple of questions.

How many other directories exist within c:\level ?
Is C:\ACCOUNT a local directory and c:\level remote?


*Aaron Titus*
Senior Software Engineer
F.W. Davison & Company, Inc.
508-747-7261 x245
ati...@fwdco.com



On Tue, Aug 20, 2013 at 2:00 PM, Dianne Ackerman  
wrote:



OK, I've found the PERMISSIONS subroutine (APP.PROGS PERMS.B) and have
narrowed this issue down more.  It's actually a slowness in the basic
command STATUS.  It's instantaneous in an upper level account (eg
C:\ACCOUNT) but takes 4-5 seconds in a lower level account (eg
C:\level\ACCOUNT).  Any thoughts?
Thanks
-Dianne


On 8/15/2013 9:50 AM, Dianne Ackerman wrote:

Does anyone know anything about the -PERMISSIONS subroutine used 
by the
ED verb in Universe?  Running 11.1.12 on Windows, the ED verb has 
a huge
delay and we've tracked it down to that subroutine call in the 
basic ED
program.  If I could look at that subroutine to see what it's 
doing, maybe

I can figure out what's causing that delay. Thanks!
-Dianne

  >ED BP ED.B The file "BP" is read-only and cannot be updated. 
3988 lines
long. : L PERMISSIONS 0153: PERMISSIONS = '-PERMISSIONS' 
: L 0308:

CALL @PERMISSIONS(EDIT.FILE,EDIT.**PERM.MODE,EDIT.PERM.IN,EDIT
.PERM.OUT) : EX



__**_ 


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] ED PERMISSIONS subroutine

2013-08-21 Thread Aaron Titus
hmm.. ten doesn't seem like that much.  The way you describe the problem it
sounds like a directory-level performance issue, i.e. its scanning
directories in the filesystem and there is some directory with a very large
number of entries -- far larger than it should be.  I would typically guess
&PH& or &COMO& might have a large number of entries, but then again not
sure why STATUS function would go after those.

If this was Linux or Unix, what I would do to figure this out is to put a
truss / strace on the uvsh process, and use the option to show timestamps
on the function calls.  You'd then be able to see which OS level operation
was actually consuming the time.  Usually that will be a dead give away as
to where the problem is.  I'm not sure how to accomplish the equivalent of
this on Windows platforms. I did a quick search on the internet and I came
up with a sysinternals tool called Process Monitor.  While I can say that
I've used many of the sysinternals tools in the past and had success, I've
never done this particular type of tracing on windows so I don't know how
to give you specific instructions.

http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx




*Aaron Titus*
Senior Software Engineer
F.W. Davison & Company, Inc.
508-747-7261 x245
ati...@fwdco.com



On Tue, Aug 20, 2013 at 4:29 PM, Dianne Ackerman  wrote:

> c:\level contains about 10 universe accounts.  All are local directories,
> none are remote.
> -Dianne
>
>
> On 8/20/2013 4:24 PM, Aaron Titus wrote:
>
>> Hi Diane, a couple of questions.
>>
>> How many other directories exist within c:\level ?
>> Is C:\ACCOUNT a local directory and c:\level remote?
>>
>>
>> *Aaron Titus*
>>
>> Senior Software Engineer
>> F.W. Davison & Company, Inc.
>> 508-747-7261 x245
>> ati...@fwdco.com
>>
>>
>>
>> On Tue, Aug 20, 2013 at 2:00 PM, Dianne Ackerman 
>> wrote:
>>
>>  OK, I've found the PERMISSIONS subroutine (APP.PROGS PERMS.B) and have
>>> narrowed this issue down more.  It's actually a slowness in the basic
>>> command STATUS.  It's instantaneous in an upper level account (eg
>>> C:\ACCOUNT) but takes 4-5 seconds in a lower level account (eg
>>> C:\level\ACCOUNT).  Any thoughts?
>>> Thanks
>>> -Dianne
>>>
>>>
>>> On 8/15/2013 9:50 AM, Dianne Ackerman wrote:
>>>
>>>  Does anyone know anything about the -PERMISSIONS subroutine used by the
 ED verb in Universe?  Running 11.1.12 on Windows, the ED verb has a huge
 delay and we've tracked it down to that subroutine call in the basic ED
 program.  If I could look at that subroutine to see what it's doing,
 maybe
 I can figure out what's causing that delay. Thanks!
 -Dianne

   >ED BP ED.B The file "BP" is read-only and cannot be updated. 3988
 lines

> long. : L PERMISSIONS 0153: PERMISSIONS = '-PERMISSIONS' : L
> 0308:
> CALL @PERMISSIONS(EDIT.FILE,EDIT.PERM.MODE,EDIT.PERM.IN,EDIT
> .PERM.OUT) : EX
>
>
  ___
>>> U2-Users mailing list
>>> U2-Users@listserver.u2ug.org
>>> http://listserver.u2ug.org/mailman/listinfo/u2-users
>>> http://listserver.u2ug.org/mailman/listinfo/u2-users>
>>> >
>>>
>>>  __**_
>> U2-Users mailing list
>> U2-Users@listserver.u2ug.org
>> http://listserver.u2ug.org/**mailman/listinfo/u2-users
>>
>>
>>
> __**_
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/**mailman/listinfo/u2-users
>
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] ED PERMISSIONS subroutine

2013-08-21 Thread Dianne Ackerman

Thanks Aaron, I'll check that out!
-Dianne

On 8/21/2013 9:57 AM, Aaron Titus wrote:

hmm.. ten doesn't seem like that much.  The way you describe the problem it
sounds like a directory-level performance issue, i.e. its scanning
directories in the filesystem and there is some directory with a very large
number of entries -- far larger than it should be.  I would typically guess
&PH& or &COMO& might have a large number of entries, but then again not
sure why STATUS function would go after those.

If this was Linux or Unix, what I would do to figure this out is to put a
truss / strace on the uvsh process, and use the option to show timestamps
on the function calls.  You'd then be able to see which OS level operation
was actually consuming the time.  Usually that will be a dead give away as
to where the problem is.  I'm not sure how to accomplish the equivalent of
this on Windows platforms. I did a quick search on the internet and I came
up with a sysinternals tool called Process Monitor.  While I can say that
I've used many of the sysinternals tools in the past and had success, I've
never done this particular type of tracing on windows so I don't know how
to give you specific instructions.

http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx




*Aaron Titus*
Senior Software Engineer
F.W. Davison & Company, Inc.
508-747-7261 x245
ati...@fwdco.com



On Tue, Aug 20, 2013 at 4:29 PM, Dianne Ackerman  wrote:


c:\level contains about 10 universe accounts.  All are local directories,
none are remote.
-Dianne


On 8/20/2013 4:24 PM, Aaron Titus wrote:


Hi Diane, a couple of questions.

How many other directories exist within c:\level ?
Is C:\ACCOUNT a local directory and c:\level remote?


*Aaron Titus*

Senior Software Engineer
F.W. Davison & Company, Inc.
508-747-7261 x245
ati...@fwdco.com



On Tue, Aug 20, 2013 at 2:00 PM, Dianne Ackerman 
wrote:

  OK, I've found the PERMISSIONS subroutine (APP.PROGS PERMS.B) and have

narrowed this issue down more.  It's actually a slowness in the basic
command STATUS.  It's instantaneous in an upper level account (eg
C:\ACCOUNT) but takes 4-5 seconds in a lower level account (eg
C:\level\ACCOUNT).  Any thoughts?
Thanks
-Dianne


On 8/15/2013 9:50 AM, Dianne Ackerman wrote:

  Does anyone know anything about the -PERMISSIONS subroutine used by the

ED verb in Universe?  Running 11.1.12 on Windows, the ED verb has a huge
delay and we've tracked it down to that subroutine call in the basic ED
program.  If I could look at that subroutine to see what it's doing,
maybe
I can figure out what's causing that delay. Thanks!
-Dianne

   >ED BP ED.B The file "BP" is read-only and cannot be updated. 3988
lines


long. : L PERMISSIONS 0153: PERMISSIONS = '-PERMISSIONS' : L
0308:
CALL @PERMISSIONS(EDIT.FILE,EDIT.PERM.MODE,EDIT.PERM.IN,EDIT
.PERM.OUT) : EX



  ___

U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
http://listserver.u2ug.org/mailman/listinfo/u2-users>
  __**_

U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/**mailman/listinfo/u2-users




__**_
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/**mailman/listinfo/u2-users


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users




___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Exchanging XML data instead of JSON between hosts via RESTful Server

2013-08-21 Thread Larry Hiscock
>> 
{"batchRequests": {"BatchRequest": {"referenceNumber":
"f549c4dd-01f4-4b9b-99e2-6dd6862cf364","serviceRequest": {"SERVICE":
{"-name":"VALID.POST.CODE","PORTAL_USER_ID": "testuser","POSTCODE":
"4300","SUBURB": "GOODNA"} 

Curious why you're mixing XML & JSON in your "converted" example?

Shouldn't that read:

{"code":
  {"batchRequests": 
{"BatchRequest": 
  {"referenceNumber": "f549c4dd-01f4-4b9b-99e2-6dd6862cf364",
   "serviceRequest": 
 {"SERVICE": 
   {"-name":"VALID.POST.CODE",
"PORTAL_USER_ID": "testuser",
"POSTCODE": "4300",
"SUBURB": "GOODNA"}
 }
   }
 }
   }
}


Larry Hiscock
Western Computer Services

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Peter Cheney
Sent: Wednesday, August 21, 2013 12:30 AM
To: 'U2 Users List' ‎[u2-users@listserver.u2ug.org]‎
Subject: [U2] Exchanging XML data instead of JSON between hosts via RESTful
Server

Hi Everyone,

Is it possible to configure a RESTful service subroutine to accept XML as
the input to one of its defined parameters?

I keep getting the following error:
500:
Expected+a+','+or+'}'com.rs.u2.u2rest.marshaller.U2JSONTokenizer@13c33b7

The subroutine has 2 parameters XML.IN in Position 1 and XML.OUT in Position
2. Each type is set to string.

Normally this program is used elsewhere in our other services so it is
already XML ready.

I've converted my test xml to json and tried that. While the error
disappears the response while valid xml (output from the program) is
otherwise empty. (I changed the type from string to json too).

If I key in any random string I get the same valid yet empty program
response.

So how do I configure the server to pass this xml string straight to the
subroutine?
Perhaps I need to convert some of the characters (e.g. '/' in the xml below
as per uri requirements?
Is it possible or am I way off course here?

Sample xml:

f549c4dd-01f4-4b9b-99e2-6dd686
2cf364testuser43
00GOODNA


Converted to json:

{"batchRequests": {"BatchRequest": {"referenceNumber":
"f549c4dd-01f4-4b9b-99e2-6dd6862cf364","serviceRequest": {"SERVICE":
{"-name":"VALID.POST.CODE","PORTAL_USER_ID": "testuser","POSTCODE":
"4300","SUBURB": "GOODNA"} 

Many thanks in advance.
Cheers
Peter




[Description: Description:
https://www.firstmac.com.au]

Peter Cheney

Universe Engineer

t 07 3017 8837 | f 07 3002 8400

e peter.che...@firstmac.com.au | w
www.firstmac.com.au



 

---
Note: 
This email (inc all attachments) is for the use of the intended recipient(s)
only.
Privileged or confidential information may be contained in this
communication. If you have received this email in error, please notify the
sender immediately and then delete all copies of this message from your
computer network. If you are not the intended recipient, you must not keep,
use, disclose, copy or distribute this email without the author's prior
permission. If you are the intended recipient and you do not wish to receive
similar electronic messages from us in future, then please respond to the
sender to this effect. 
We have taken precautions to minimise the risk of transmitting software
viruses, but advise you to carry out your own virus checks on this email and
its attachments. We do not accept liability for any loss or damage caused by
software viruses and do not represent that this transmission is free from
viruses or other defects. 
Firstmac Limited (ABN 59 094 145 963) (AFSL 290600)
 

---
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] Globally catalogs - source code

2013-08-21 Thread Jeff Schasny

LIST GLOBAL.CATDIR PROG.PATHNAME



Leverett, Brendon wrote:

We are running UV on AIX

We have some programs that have been globally catalogued - they are visible in 
the GLOBAL.CATDIR file.
 
I am aware some are system commands but a number are programs we have globally catalogued as (shown as *ProgName). Any tips on the best way to find which program library the source code resides in?


Buried in the GLOBAL.CATDIR record, along with all the compiled code 'junk' I 
can see the path but viewing (via a CT or ED) it is not user friendly as the 
'junk' will often crash/lock the screen.

Regards,
Brendon
Information Services
Spotless Services Australia Limited
T: 03 9269 7738
M: 0419 349122
F: 03 8399 7013
E-mail brendon.lever...@spotless.com.au
W www.spotless.com


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

  


--

Jeff Schasny - Denver, Co, USA
jschasny at gmail dot com

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] Globally catalogs - source code

2013-08-21 Thread Wjhonson
True and False, more later


 

 

 

-Original Message-
From: Jon Card 
To: U2 Users List 
Sent: Tue, Aug 20, 2013 7:52 pm
Subject: Re: [U2] [UV] Globally catalogs - source code


RUN MAKE.MAP.FILE the results are in &MAP& see help for details

Jon Card
Combined Transport Inc




On Aug 20, 2013, at 9:06 PM, "Leverett, Brendon" 
 
wrote:

> We are running UV on AIX
> 
> We have some programs that have been globally catalogued - they are visible 
> in 
the GLOBAL.CATDIR file.
> 
> I am aware some are system commands but a number are programs we have 
> globally 
catalogued as (shown as *ProgName). Any tips on the best way to find which 
program library the source code resides in?
> 
> Buried in the GLOBAL.CATDIR record, along with all the compiled code 'junk' I 
can see the path but viewing (via a CT or ED) it is not user friendly as the 
'junk' will often crash/lock the screen.
> 
> Regards,
> Brendon
> Information Services
> Spotless Services Australia Limited
> T: 03 9269 7738
> M: 0419 349122
> F: 03 8399 7013
> E-mail brendon.lever...@spotless.com.au
> W www.spotless.com
> 
> 
> ___
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

 
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] Globally catalogs - source code

2013-08-21 Thread Wjhonson
PROG.PATHNAME not found
 

 

 

-Original Message-
From: Jeff Schasny 
To: U2 Users List 
Sent: Wed, Aug 21, 2013 9:10 am
Subject: Re: [U2] [UV] Globally catalogs - source code


LIST GLOBAL.CATDIR PROG.PATHNAME



Leverett, Brendon wrote:
> We are running UV on AIX
>
> We have some programs that have been globally catalogued - they are visible 
> in 
the GLOBAL.CATDIR file.
>  
> I am aware some are system commands but a number are programs we have 
> globally 
catalogued as (shown as *ProgName). Any tips on the best way to find which 
program library the source code resides in?
>
> Buried in the GLOBAL.CATDIR record, along with all the compiled code 'junk' I 
can see the path but viewing (via a CT or ED) it is not user friendly as the 
'junk' will often crash/lock the screen.
>
> Regards,
> Brendon
> Information Services
> Spotless Services Australia Limited
> T: 03 9269 7738
> M: 0419 349122
> F: 03 8399 7013
> E-mail brendon.lever...@spotless.com.au
> W www.spotless.com
>
>
> ___
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users
>
>   

-- 

Jeff Schasny - Denver, Co, USA
jschasny at gmail dot com

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

 
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] Globally catalogs - source code

2013-08-21 Thread Jeff Schasny

Are you running UV on AIX?

Wjhonson wrote:

PROG.PATHNAME not found
 

 

 


-Original Message-
From: Jeff Schasny 
To: U2 Users List 
Sent: Wed, Aug 21, 2013 9:10 am
Subject: Re: [U2] [UV] Globally catalogs - source code


LIST GLOBAL.CATDIR PROG.PATHNAME



Leverett, Brendon wrote:
  

We are running UV on AIX

We have some programs that have been globally catalogued - they are visible in 


the GLOBAL.CATDIR file.
  
 
I am aware some are system commands but a number are programs we have globally 

catalogued as (shown as *ProgName). Any tips on the best way to find which 
program library the source code resides in?
  
Buried in the GLOBAL.CATDIR record, along with all the compiled code 'junk' I 

can see the path but viewing (via a CT or ED) it is not user friendly as the 
'junk' will often crash/lock the screen.
  

Regards,
Brendon
Information Services
Spotless Services Australia Limited
T: 03 9269 7738
M: 0419 349122
F: 03 8399 7013
E-mail brendon.lever...@spotless.com.au
W www.spotless.com


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

  



  


--

Jeff Schasny - Denver, Co, USA
jschasny at gmail dot com

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] Globally catalogs - source code

2013-08-21 Thread Dianne Ackerman

I'm running UV on AIX and I also get that error.
-Dianne



On 8/21/2013 2:59 PM, Jeff Schasny wrote:

Are you running UV on AIX?

Wjhonson wrote:

PROG.PATHNAME not found






-Original Message-
From: Jeff Schasny 
To: U2 Users List 
Sent: Wed, Aug 21, 2013 9:10 am
Subject: Re: [U2] [UV] Globally catalogs - source code


LIST GLOBAL.CATDIR PROG.PATHNAME



Leverett, Brendon wrote:

We are running UV on AIX

We have some programs that have been globally catalogued - they are 
visible in 

the GLOBAL.CATDIR file.


I am aware some are system commands but a number are programs we 
have globally 
catalogued as (shown as *ProgName). Any tips on the best way to find 
which program library the source code resides in?
Buried in the GLOBAL.CATDIR record, along with all the compiled code 
'junk' I 
can see the path but viewing (via a CT or ED) it is not user friendly 
as the 'junk' will often crash/lock the screen.

Regards,
Brendon
Information Services
Spotless Services Australia Limited
T: 03 9269 7738
M: 0419 349122
F: 03 8399 7013
E-mail brendon.lever...@spotless.com.au
W www.spotless.com


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users







___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] Globally catalogs - source code

2013-08-21 Thread Jeff Schasny

This is a Type "I" Descriptor last compiled on 03/27/13 at 10:28.
20 lines long.

: P7
0001: I
0002: SUBR("*SRS.UV.HEADER", @RECORD, 41)
0003:
0004:
0005: 30L
0006: S
0007:


Looks like this got here courtesy of Mr. Pflugfelder's SRS stuff he 
mentioned earlier.


Dianne Ackerman wrote:

I'm running UV on AIX and I also get that error.
-Dianne



On 8/21/2013 2:59 PM, Jeff Schasny wrote:

Are you running UV on AIX?

Wjhonson wrote:

PROG.PATHNAME not found






-Original Message-
From: Jeff Schasny 
To: U2 Users List 
Sent: Wed, Aug 21, 2013 9:10 am
Subject: Re: [U2] [UV] Globally catalogs - source code


LIST GLOBAL.CATDIR PROG.PATHNAME



Leverett, Brendon wrote:

We are running UV on AIX

We have some programs that have been globally catalogued - they are 
visible in 

the GLOBAL.CATDIR file.


I am aware some are system commands but a number are programs we 
have globally 
catalogued as (shown as *ProgName). Any tips on the best way to find 
which program library the source code resides in?
Buried in the GLOBAL.CATDIR record, along with all the compiled 
code 'junk' I 
can see the path but viewing (via a CT or ED) it is not user 
friendly as the 'junk' will often crash/lock the screen.

Regards,
Brendon
Information Services
Spotless Services Australia Limited
T: 03 9269 7738
M: 0419 349122
F: 03 8399 7013
E-mail brendon.lever...@spotless.com.au
W www.spotless.com


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users







___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users



--

Jeff Schasny - Denver, Co, USA
jschasny at gmail dot com

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] Globally catalogs - source code

2013-08-21 Thread Wjhonson
I'd like to see this code.
Thanks


 

 

 

-Original Message-
From: Michael Pflugfelder 
To: U2 Users List 
Sent: Tue, Aug 20, 2013 10:34 pm
Subject: Re: [U2] [UV] Globally catalogs - source code


I generally install the SRS.UV.HEADER code.  The website www.srs4uv.com went 
offline around Feb 2012.  If you or anyone else would like the code, I can 
provide what we have now.

-Mike

-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] 
On Behalf Of Leverett, Brendon
Sent: Tuesday, August 20, 2013 10:07 PM
To: U2 Users List
Subject: [U2] [UV] Globally catalogs - source code

We are running UV on AIX

We have some programs that have been globally catalogued - they are visible in 
the GLOBAL.CATDIR file.
 
I am aware some are system commands but a number are programs we have globally 
catalogued as (shown as *ProgName). Any tips on the best way to find which 
program library the source code resides in?

Buried in the GLOBAL.CATDIR record, along with all the compiled code 'junk' I 
can see the path but viewing (via a CT or ED) it is not user friendly as the 
'junk' will often crash/lock the screen.

Regards,
Brendon
Information Services
Spotless Services Australia Limited
T: 03 9269 7738
M: 0419 349122
F: 03 8399 7013
E-mail brendon.lever...@spotless.com.au
W www.spotless.com


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

 
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] ED PERMISSIONS subroutine

2013-08-21 Thread John Jenkins
The process monitor from Microsoft sysinternals will allow you to trace a 
process and it's timing.

Regards

JayJay


On 21 Aug 2013, at 14:57, Aaron Titus  wrote:

> hmm.. ten doesn't seem like that much.  The way you describe the problem it
> sounds like a directory-level performance issue, i.e. its scanning
> directories in the filesystem and there is some directory with a very large
> number of entries -- far larger than it should be.  I would typically guess
> &PH& or &COMO& might have a large number of entries, but then again not
> sure why STATUS function would go after those.
> 
> If this was Linux or Unix, what I would do to figure this out is to put a
> truss / strace on the uvsh process, and use the option to show timestamps
> on the function calls.  You'd then be able to see which OS level operation
> was actually consuming the time.  Usually that will be a dead give away as
> to where the problem is.  I'm not sure how to accomplish the equivalent of
> this on Windows platforms. I did a quick search on the internet and I came
> up with a sysinternals tool called Process Monitor.  While I can say that
> I've used many of the sysinternals tools in the past and had success, I've
> never done this particular type of tracing on windows so I don't know how
> to give you specific instructions.
> 
> http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
> 
> 
> 
> 
> *Aaron Titus*
> Senior Software Engineer
> F.W. Davison & Company, Inc.
> 508-747-7261 x245
> ati...@fwdco.com
> 
> 
> 
> On Tue, Aug 20, 2013 at 4:29 PM, Dianne Ackerman  wrote:
> 
>> c:\level contains about 10 universe accounts.  All are local directories,
>> none are remote.
>> -Dianne
>> 
>> 
>> On 8/20/2013 4:24 PM, Aaron Titus wrote:
>> 
>>> Hi Diane, a couple of questions.
>>> 
>>> How many other directories exist within c:\level ?
>>> Is C:\ACCOUNT a local directory and c:\level remote?
>>> 
>>> 
>>> *Aaron Titus*
>>> 
>>> Senior Software Engineer
>>> F.W. Davison & Company, Inc.
>>> 508-747-7261 x245
>>> ati...@fwdco.com
>>> 
>>> 
>>> 
>>> On Tue, Aug 20, 2013 at 2:00 PM, Dianne Ackerman 
>>> wrote:
>>> 
>>> OK, I've found the PERMISSIONS subroutine (APP.PROGS PERMS.B) and have
 narrowed this issue down more.  It's actually a slowness in the basic
 command STATUS.  It's instantaneous in an upper level account (eg
 C:\ACCOUNT) but takes 4-5 seconds in a lower level account (eg
 C:\level\ACCOUNT).  Any thoughts?
 Thanks
 -Dianne
 
 
 On 8/15/2013 9:50 AM, Dianne Ackerman wrote:
 
 Does anyone know anything about the -PERMISSIONS subroutine used by the
> ED verb in Universe?  Running 11.1.12 on Windows, the ED verb has a huge
> delay and we've tracked it down to that subroutine call in the basic ED
> program.  If I could look at that subroutine to see what it's doing,
> maybe
> I can figure out what's causing that delay. Thanks!
> -Dianne
> 
>> ED BP ED.B The file "BP" is read-only and cannot be updated. 3988
> lines
> 
>> long. : L PERMISSIONS 0153: PERMISSIONS = '-PERMISSIONS' : L
>> 0308:
>> CALL @PERMISSIONS(EDIT.FILE,EDIT.PERM.MODE,EDIT.PERM.IN,EDIT
>> .PERM.OUT) : EX
> ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 http://listserver.u2ug.org/mailman/listinfo/u2-users>
 
 __**_
>>> U2-Users mailing list
>>> U2-Users@listserver.u2ug.org
>>> http://listserver.u2ug.org/**mailman/listinfo/u2-users
>> __**_
>> U2-Users mailing list
>> U2-Users@listserver.u2ug.org
>> http://listserver.u2ug.org/**mailman/listinfo/u2-users
> ___
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


[U2] resolved: RE: Exchanging XML data instead of JSON between hosts via RESTful Server

2013-08-21 Thread Peter Cheney
Hi Larry,

Sorry, that  was my posting to a forum vs e-mail list brain snap...

I've since discovered that for my XML example (among others) to be included as 
the payload for a JSON object then all the "JSON illegal chars" (e.g. ", /, \) 
in the XML need to be escaped (e.g. \", \/,\\).

With this basic filter in place both ends I can do what I want and at least 
evaluate the results etc. without (yet) having to JSON-ize our code.

I'm also looking into direct socket comms as suggested by our VAR too as well 
as SOAP as suggested by Kurt.

Many thanks for the replies.

Cheers
Peter


From: u2-users-boun...@listserver.u2ug.org 
[u2-users-boun...@listserver.u2ug.org] on behalf of Larry Hiscock 
[lar...@wcs-corp.com]
Sent: Thursday, 22 August 2013 1:29 AM
To: 'U2 Users List'
Subject: Re: [U2] Exchanging XML data instead of JSON between hosts via RESTful 
Server

>> 
{"batchRequests": {"BatchRequest": {"referenceNumber":
"f549c4dd-01f4-4b9b-99e2-6dd6862cf364","serviceRequest": {"SERVICE":
{"-name":"VALID.POST.CODE","PORTAL_USER_ID": "testuser","POSTCODE":
"4300","SUBURB": "GOODNA"} 

Curious why you're mixing XML & JSON in your "converted" example?

Shouldn't that read:

{"code":
  {"batchRequests":
{"BatchRequest":
  {"referenceNumber": "f549c4dd-01f4-4b9b-99e2-6dd6862cf364",
   "serviceRequest":
 {"SERVICE":
   {"-name":"VALID.POST.CODE",
"PORTAL_USER_ID": "testuser",
"POSTCODE": "4300",
"SUBURB": "GOODNA"}
 }
   }
 }
   }
}


Larry Hiscock
Western Computer Services

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Peter Cheney
Sent: Wednesday, August 21, 2013 12:30 AM
To: 'U2 Users List' ‎[u2-users@listserver.u2ug.org]‎
Subject: [U2] Exchanging XML data instead of JSON between hosts via RESTful
Server

Hi Everyone,

Is it possible to configure a RESTful service subroutine to accept XML as
the input to one of its defined parameters?

I keep getting the following error:
500:
Expected+a+','+or+'}'com.rs.u2.u2rest.marshaller.U2JSONTokenizer@13c33b7

The subroutine has 2 parameters XML.IN in Position 1 and XML.OUT in Position
2. Each type is set to string.

Normally this program is used elsewhere in our other services so it is
already XML ready.

I've converted my test xml to json and tried that. While the error
disappears the response while valid xml (output from the program) is
otherwise empty. (I changed the type from string to json too).

If I key in any random string I get the same valid yet empty program
response.

So how do I configure the server to pass this xml string straight to the
subroutine?
Perhaps I need to convert some of the characters (e.g. '/' in the xml below
as per uri requirements?
Is it possible or am I way off course here?

Sample xml:

f549c4dd-01f4-4b9b-99e2-6dd686
2cf364testuser43
00GOODNA


Converted to json:

{"batchRequests": {"BatchRequest": {"referenceNumber":
"f549c4dd-01f4-4b9b-99e2-6dd6862cf364","serviceRequest": {"SERVICE":
{"-name":"VALID.POST.CODE","PORTAL_USER_ID": "testuser","POSTCODE":
"4300","SUBURB": "GOODNA"} 

Many thanks in advance.
Cheers
Peter




[Description: Description:
https://www.firstmac.com.au]

Peter Cheney

Universe Engineer

t 07 3017 8837 | f 07 3002 8400

e peter.che...@firstmac.com.au | w
www.firstmac.com.au





---
Note:
This email (inc all attachments) is for the use of the intended recipient(s)
only.
Privileged or confidential information may be contained in this
communication. If you have received this email in error, please notify the
sender immediately and then delete all copies of this message from your
computer network. If you are not the intended recipient, you must not keep,
use, disclose, copy or distribute this email without the author's prior
permission. If you are the intended recipient and you do not wish to receive
similar electronic messages from us in future, then please respond to the
sender to this effect.
We have taken precautions to minimise the risk of transmitting software
viruses, but advise you to carry out your own virus checks on this email and
its attachments. We do not accept liability for any loss or damage caused by
software viruses and do not represent that this transmission is free from
viruses or other defects.
Firstmac Limited (ABN 59 094 145 963) (AFSL 290600)


---
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-use

Re: [U2] [UV] Globally catalogs - source code

2013-08-21 Thread Leverett, Brendon
Seems this is the 'best' option. I will add that I had already done this and 
more than anything I was just curious to know if there was a smarter/more 
simple system provided way to get the answer.

Thanks to all,
Brendon Leverett
Information Services
Spotless Services Australia Limited
T: 03 9269 7738
M: 0419 349122
F: 03 8399 7013
E-mail brendon.lever...@spotless.com.au
W www.spotless.com


-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Larry Hiscock
Sent: Wednesday, 21 August 2013 1:39 PM
To: 'U2 Users List'
Subject: Re: [U2] [UV] Globally catalogs - source code

If you ED the CATDIR or GLOBAL.CATDIR file, just type a ^ to put ED into "view 
non-printable characters" mode.  Then the path to the program is on the last 
line.

Larry Hiscock
Western Computer Services

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Leverett, Brendon
Sent: Tuesday, August 20, 2013 7:07 PM
To: U2 Users List
Subject: [U2] [UV] Globally catalogs - source code

We are running UV on AIX

We have some programs that have been globally catalogued - they are visible in 
the GLOBAL.CATDIR file.
 
I am aware some are system commands but a number are programs we have globally 
catalogued as (shown as *ProgName). Any tips on the best way to find which 
program library the source code resides in?

Buried in the GLOBAL.CATDIR record, along with all the compiled code 'junk'
I can see the path but viewing (via a CT or ED) it is not user friendly as the 
'junk' will often crash/lock the screen.

Regards,
Brendon
Information Services
Spotless Services Australia Limited
T: 03 9269 7738
M: 0419 349122
F: 03 8399 7013
E-mail brendon.lever...@spotless.com.au
W www.spotless.com


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] Globally catalogs - source code

2013-08-21 Thread Wjhonson
This is the simplest way.
There is a harder way, if you want a program to know the answer, not a human.


 

 

 

-Original Message-
From: Leverett, Brendon 
To: U2 Users List 
Sent: Wed, Aug 21, 2013 6:32 pm
Subject: Re: [U2] [UV] Globally catalogs - source code


Seems this is the 'best' option. I will add that I had already done this and 
more than anything I was just curious to know if there was a smarter/more 
simple 
system provided way to get the answer.

Thanks to all,
Brendon Leverett
Information Services
Spotless Services Australia Limited
T: 03 9269 7738
M: 0419 349122
F: 03 8399 7013
E-mail brendon.lever...@spotless.com.au
W www.spotless.com


-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] 
On Behalf Of Larry Hiscock
Sent: Wednesday, 21 August 2013 1:39 PM
To: 'U2 Users List'
Subject: Re: [U2] [UV] Globally catalogs - source code

If you ED the CATDIR or GLOBAL.CATDIR file, just type a ^ to put ED into "view 
non-printable characters" mode.  Then the path to the program is on the last 
line.

Larry Hiscock
Western Computer Services

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Leverett, Brendon
Sent: Tuesday, August 20, 2013 7:07 PM
To: U2 Users List
Subject: [U2] [UV] Globally catalogs - source code

We are running UV on AIX

We have some programs that have been globally catalogued - they are visible in 
the GLOBAL.CATDIR file.
 
I am aware some are system commands but a number are programs we have globally 
catalogued as (shown as *ProgName). Any tips on the best way to find which 
program library the source code resides in?

Buried in the GLOBAL.CATDIR record, along with all the compiled code 'junk'
I can see the path but viewing (via a CT or ED) it is not user friendly as the 
'junk' will often crash/lock the screen.

Regards,
Brendon
Information Services
Spotless Services Australia Limited
T: 03 9269 7738
M: 0419 349122
F: 03 8399 7013
E-mail brendon.lever...@spotless.com.au
W www.spotless.com


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

 
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users