× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Trigger pgm: user & pgm id
  • From: Walden Leverich <walden@xxxxxxxxxxxxxxx>
  • Date: Fri, 7 Nov 1997 20:37:25 -0500
  • Organization: Tech Software

In RPG you can look in the program status data structure for the user name. 
I'm not sure what Cobols equivalent is. As for the program, you need to 
look at the call stack. Either use the aforementioned send/receive message 
hack or look for an API. Remember that the program you want is not the one 
that called the trigger, but rather the one that called it.

Also, remember that this concept goes out the window if you are using 
opticonnect. The user shown on the update is QOPT (or something like that) 
not the name of the user on the remote machine.

-Walden

PS. I was going to include the name of the API to call to retrieve the call 
stack. But I cannot find one. Does anyone know of an API to retrieve a 
job's call stack?

-------------------------------
Walden Leverich
Tech Software
walden@techsoftinc.com
www.techsoftinc.com

-----Original Message-----
From:   Karen Bellecci [SMTP:KBellecci@osfa.state.la.us]
Sent:   Wednesday, November 05, 1997 10:33 AM
To:     MIDRANGE-L@midrange.com
Subject:        Trigger pgm: user & pgm id

I would like to identify the program and user that tripped the *UPDATE 
trigger when
they were updating a database file.  We are using V3R1, not under 
journaling,
commitment control, or ILE.  Just OPM Cobol at the moment.  What (CL) 
command can
I use in my (Cobol) trigger program to identify this?  (We want to place 
the before and
after images of the database change in a history file, with time, user and 
program that
made the change.)

TIA.
Karen Bellecci
kbellecci@osfa.state.la.us
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@midrange.com".
| To unsubscribe from this list send email to MAJORDOMO@midrange.com
|    and specify 'unsubscribe MIDRANGE-L' in the body of your message.
| Questions should be directed to the list owner/operator: 
david@midrange.com
+---
uucp
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@midrange.com".
| To unsubscribe from this list send email to MAJORDOMO@midrange.com
|    and specify 'unsubscribe MIDRANGE-L' in the body of your message.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.