RE: [U2] [UD] Determining if program running as a phantom

2008-09-16 Thread Bill Haskett
According to the manual... SYSTEM(18-29) Not currently used. ...and nothing shows. Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, September 15, 2008 9:31 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] [UD]

Re: [U2] [UD] Determining if program running as a phantom

2008-09-16 Thread iggchamp
What does Unidata show for system(25)? -- Original message -- From: Bill Haskett [EMAIL PROTECTED] Im having a bit of a problem figuring out how to tell, within a program, if it is running as a phantom. It was my impression that @USER.TYPE would be set to 1 if

RE: [U2] [UD] Determining if program running as a phantom

2008-09-16 Thread David A. Green
Try using SYSTEM(48). A Phantom process will have a COMO file. Thanks, David A. Green www.dagconsulting.com (480) 813-1725 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Haskett Sent: Monday, September 15, 2008 7:54 PM To:

RE: [U2] [UD] Determining if program running as a phantom

2008-09-16 Thread Colin Alfke
If you have a different account for the UniObjects connections (we do for ODBC access) you could use @ACCOUNT. Or you could use UOLOGIN to set an @USER variable. HTH Colin Alfke Calgary, Canada -Original Message- David A. Green Try using SYSTEM(48). A Phantom process will have a

[U2] [UD] Crystal Reports and UniData

2008-09-16 Thread David Wolverton
We want to use UniData 7.1.20 OLE-DB and Crystal Reports 2008 -- but are having no joy at the moment. The issue is the SQL that gets generated is quoted incorrectly. Example SQL I'm getting from Crystal Reports 2008: Select File_Name.Dict_Name,File_Name.Dict_Name From File_Name I don't see a

RE: [U2] [UD] Determining if program running as a phantom

2008-09-16 Thread Bill Haskett
Thanks David. This doesn't work, however. I run a program in DesignBais using UniObjects. In this program I execute a phantom. In the phantom program I have to initialize some variables. This code is in an include every program uses. So, in the include I test if the running program is a

[U2] I need a correlative, just like the correlative...

2008-09-16 Thread Jeff Schasny
My Pick Pocket Guide fails me. I can't use an I descriptor (that would be way too easy) and I need to create a correlative that presents the data in a multivalued field as a single valued comma delimited list. The equivalent of this: 0001: I 0002: CONVERT(@VM,',',PO.NUMBER) 0003: 0004: PO

RE: [U2] [UD] Determining if program running as a phantom

2008-09-16 Thread David Wolverton
One way I've dealt with this issue in the past is by having the 'INCLUDE' in the code always, then testing for something I know should be initialized with TESTVAR = UNASSIGNED(varname) -- if the variable would return 'Not Assigned a value' then TESTVAR would be 1, and I would know to run my

[U2] If you run UV, Read This !!! Change to UV Backup Recommendations

2008-09-16 Thread Stephen O'Neal
There is an immediate change to the recommended steps for backing up UV. NEW RECOMMENDED BACKUP STEPS: SUSPEND.FILES ON SYNC --- This is the New Recommendation !!! The buffers must be flushed to disk !!! Break off mirrored set, create Flash Copy, etc. SUSPEND.FILES OFF Make backup from

Re: [U2] Next UniVerse Release

2008-09-16 Thread Clifton Oliver
Based on the posting on this topic from Steve O'Neal, it appears we have our answer. Always do a sync after pausing the database. I wonder if that is true for UniData, too. Wally? You following this thread? Thanks for pointing out the issue, Brian! Regards, Clif On Sep 15, 2008, at

[U2] SOAP over HTTPS

2008-09-16 Thread Larry Hiscock
Has anyone implemented the UniData SOAP functions over an HTTPS URL? The CALLHTTP stuff, on which the SOAP stuff is built, has an option for creating a secure request, but the soapcreaterequest function doesn't seem to have the equivalent. Is there such a beast, or do I need to revert to the

RE: [U2] [UD] Determining if program running as a phantom

2008-09-16 Thread David A. Green
COMOs always start with O_. Thanks, David A. Green www.dagconsulting.com (480) 813-1725 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Haskett Sent: Tuesday, September 16, 2008 10:09 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] [UD]

Re: [U2] [UD] Determining if program running as a phantom

2008-09-16 Thread Dave Taylor
Bill, Are you asking two questions: Is the program running and is the program running as a phantom? Or only one question : Is the program running as a phantom? I don't fully understand your application environment, but we use the following technique to determine if a program, that normally

Re: [U2] I need a correlative, just like the correlative...

2008-09-16 Thread rbl000
Jeff, It's not pretty, but if you know the maximum number of values (n), you could use this: F;0;(Tfname;X1;;96);C,;:;0;(Tfname;X2;;96);:;C,;:; ... ;0;(Tfname;Xn;;96);: Best Regards, Richard Lewis -Original Message- From: Jeff Schasny [EMAIL PROTECTED] Date: 09/16/2008 01:46 PM To:

RE: [U2] [UD] Determining if program running as a phantom

2008-09-16 Thread Bill Haskett
Dave: We're upgrading our application to DesignBais. It is an excellent tool to move our character based application to a web environment and we're happy with its capabilities. We modify a process of ours (say writing checks) to run as a phantom instead of as a response to a [R]un option from

RE: [U2] [UD] Crystal Reports and UniData

2008-09-16 Thread Tony G
David, the best approach may be more indirect. This is another reason why I keep trying to discourage the more direct interfaces between MV-specific SQL tools. Rather than trying to bind CR or any reporting tools to U2, create a Data Access Layer (DAL) that you're comfortable with using any

RE: [U2] [UD] Determining if program running as a phantom

2008-09-16 Thread Ken Wallis
So can you PARSE the LISTUSER() function output using @USERNO (which should be your PID) to find the relevant attribute for your license and digging out the appropriate values which identifies your process type. Alternatively, since it looks like you'd need to check two elements in that array,

Re: [U2] [UD] Determining if program running as a phantom

2008-09-16 Thread Dave Taylor
Bill, Here's another idea: We often run a program that needs some information passed to it, so we run it from a proc and preload the buffer in the proc with the information needed by the program. Inside the program, we read the proc buffer and extract the information we need. Perhaps you

Re[2]: [U2] access to mvBase VTF files

2008-09-16 Thread David Tod Sigafoos
then there's unidata ... talk about grotesque G You are right .. moving data is moving data. A simple save/restore solves a lot of problems, if there is one. Of course I can follow the norm and just write something and charge the client a lot of something that should be there G

Re[2]: [U2] access to mvBase VTF files

2008-09-16 Thread David Tod Sigafoos
Tony, Funny thing about consultants .. first thing they want to do is write a program instead of finding a pre-existing solution. IF there were a way to move data from one environment to another without charging the client more money just to show off my brilliance that would be

Re: [U2] I need a correlative, just like the correlative...

2008-09-16 Thread David Tod Sigafoos
Jeff, Why not just call a simple DICT program? Tuesday, September 16, 2008, 10:46:01 AM, you wrote: JS My Pick Pocket Guide fails me. JS I can't use an I descriptor (that would be way too easy) and I need to JS create a correlative that presents the data in a multivalued

RE: [U2] I need a correlative, just like the correlative...

2008-09-16 Thread Allen E. Elwood
Which is why I always just use a subr. The real cost to the client is the cost creation and maintenance. Subr's are just *so* easy to understand. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of rbl000 Sent: Tuesday, September 16, 2008 14:45 To:

RE: [U2] SOAP over HTTPS

2008-09-16 Thread Janet Cedervall
Yes, there's a SOAPCreateSecureRequest that works. Or at least the person who wrote the code below claims it works. I can't help you with specifics, as someone else wrote it. This was written for UniVerse. (I started on these SOAP calls for some QualComm webservices last week, and haven't had

RE: [U2] [UD] Determining if program running as a phantom

2008-09-16 Thread Bill Haskett
Thanks Ken. You and Wally are right about LISTUSER(). I parse out the line I want, as the program running knows which port#/pid it's running on. From there I get the data I want by extracting 1,5 to get the proper user-type. I have no idea why @USER.TYPE doesn't return the same information, but