dbTalk Databases Forums  

Using OCONV('','U50BB') in CALLX

comp.databases.pick comp.databases.pick


Discuss Using OCONV('','U50BB') in CALLX in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Cliff
 
Posts: n/a

Default Re: Using OCONV('','U50BB') in CALLX - 06-20-2006 , 12:09 PM







FYI,

I placed the OCONV in my CALLX trigger and here was the result:

101 CLIFF$74$ TEST

101 is the port the CALLX ran on
TEST is my account
CLIFF$74$ is my user id and port number my process was on.

Hope this helps in the future.


Reply With Quote
  #12  
Old   
sh
 
Posts: n/a

Default Re: Using OCONV('','U50BB') in CALLX - 06-20-2006 , 02:01 PM






What are you running on? I'm running on D3/NT and I'm getting nothing.

On NT, the user has no $ (in more ways than one).

Can you post the code? Maybe you're doing something different than I am.

Cliff wrote:
Quote:
FYI,

I placed the OCONV in my CALLX trigger and here was the result:

101 CLIFF$74$ TEST

101 is the port the CALLX ran on
TEST is my account
CLIFF$74$ is my user id and port number my process was on.

Hope this helps in the future.


Reply With Quote
  #13  
Old   
Bill H
 
Posts: n/a

Default Re: Using OCONV('','U50BB') in CALLX - 06-21-2006 , 11:58 AM



Mark:

Keep in mind that what you're describing is purely D3. Should Shalom need
to move off of D3 then he'll have to rewrite the capabilities of the "X"
correlative in BASIC. It's pretty easy to do and would be portable to
another MV dbms. :-)

Bill

"Mark Brown" <mbrown (AT) drexelmgt (DOT) com> wrote

Quote:
"Tony Gravagno" <g6q3x9lu53001 (AT) sneakemail (DOT) com.invalid> wrote in message
news:998e9297kldi8ktc7m56rve76t4pnu3e0q (AT) 4ax (DOT) com...
Sholom, not sure what's going on with your system but here are a
couple thoughts:

[SNIP]

Maybe I just had a major brain fart and just don't remember how that
stuff works, so please take this all with a grain of salt. Triggers
have been notoriously unstable in earlier versions of D3NT and there
have always been problems when trying to process data with triggers
between the VME and FSI....

Sorry I can't be more helpful.
T

I use triggers and indexes all the time. I use soundex a lot, so I
usually have a trigger to convert the plain text to soundex fields which
are then indexed. All our web pages depend heavily on indexing to reduce
query times to minimums. I have a routine that locates dealers within a
variable number of miles from the users zipcode. That uses an index of
latitudes/

Sholom, maybe this is really what you want. From D3 Ref:

x correlative

x type ac(v)

provides an audit trail for items that are updated.



type specifies the type of stamp to use, and may be any of the following
choices:



"a" places the name of the user in the specified attribute when the item
is filed.



"d" places the current date in the specified attribute when the item is
filed.



"s" adds the total time (in seconds) the item was in UP into the
specified attribute. The value is cumulative. Each time the item is
updated, the current usage is added to the previous time.



"t" places the current time in the specified attribute when the item is
filed.



"ac" specifies the attribute count into which the stamp is to be placed.



"v" specifies that each time the item is filed, the stamp is to be
inserted as a new value. If "v" is not specified, the current stamp
overwrites the previous entry. The "v" has no effect with the "s" option.



The audit stamp codes may be combined into more complex expressions, such
as "xa1d2s3v". This example will stamp attribute 1 with the user,
attribute 2 with the date, and attribute 3 with the time, adding
subsequent stamps as multi-values. When stamp specifications are
combined, the system will not add another stamp if the user and date are
the same. For example, if a stamp already exists for user 'dm' on
09/28/94, and the same user updates the item on the same date, another
stamp will not be added. This does not apply when specifying stamps
separately.


Examples:

1) xa14



This places the user-id in attribute 14.



3) xa3d4t5



This complex expression adds the user-id in attribute 3, the current date
in attribute 4, and the current time in attribute 5.







Mark Brown





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.