Back doing some jBASE work

133 views
Skip to first unread message

Rick Weiser

unread,
Apr 13, 2017, 11:45:18 AM4/13/17
to jBASE
Hi Guys,

So, I am back doing some jBase work after a long absence.  It's been at least 15 years and I am a little rusty.  The client is working on v3.4 and will at some point move to v5.

For the life of me I can't remember how to find if a file is in the JEDIFILEPATH and what its path is.

I know it a silly question but I need to know that the file being used is the correct file in the path.

Thanks,

Rick

Rick Weiser

unread,
Apr 13, 2017, 11:57:01 AM4/13/17
to jBASE
Found it ... jshow

Thanks anyway,

Rick

David McGehee

unread,
Apr 13, 2017, 12:16:00 PM4/13/17
to jb...@googlegroups.com

There is an ioctl command for that   GETFILENAME

--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups "jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbase+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Richard Kann

unread,
Apr 13, 2017, 12:35:52 PM4/13/17
to jb...@googlegroups.com

Run jdiag -k . It will show all the settings.


Richard

Comp-Ware

PS: Welcome back!

Dan Ell

unread,
Apr 13, 2017, 1:28:01 PM4/13/17
to jb...@googlegroups.com, Dan Ell

jshow -f filename

 


Dan Ell
Technical Support Engineer
P: 949-383-2429
E: da...@jbase.com | W: jbase.com
A: 9245 Research Drive, Irvine, CA 92618
Zumapalooza is the Premier Educational Conference for Cloud Computing, Infrastructure, and Software Technologies

From: jb...@googlegroups.com [mailto:jb...@googlegroups.com] On Behalf Of Rick Weiser


Sent: Thursday, April 13, 2017 11:45 AM
To: jBASE <jb...@googlegroups.com>
Subject: Back doing some jBASE work

 

Hi Guys,

--

Rick Weiser

unread,
Apr 14, 2017, 10:02:51 AM4/14/17
to jBASE
Here's another one.  There is an environment variable that controls warning messages.  Something like JBCWARNLEVEL.  By default, all warning messages cause a fatal error, even unassigned variables.

This variable is not in the 34 manual.  Can anyone give me more info on this?

Thanks,

Rick

On Thursday, April 13, 2017 at 11:45:18 AM UTC-4, Rick Weiser wrote:

Rick Weiser

unread,
Apr 14, 2017, 10:51:14 AM4/14/17
to jBASE
Its JBASE_WARNLEVEL=6

Thanks,

Rick

On Thursday, April 13, 2017 at 11:45:18 AM UTC-4, Rick Weiser wrote:

ma...@proman.com

unread,
Apr 14, 2017, 11:18:27 AM4/14/17
to jb...@googlegroups.com

The introduction patch from 1999 provides a bit more.

 

http://www.jbase.com/r5/knowledgebase/ReleaseNotes/Public/Patches/PN3_30079.htm

 

 

 

From: jb...@googlegroups.com [mailto:jb...@googlegroups.com] On Behalf Of Rick Weiser


Sent: Friday, April 14, 2017 7:51 AM
To: jBASE <jb...@googlegroups.com>

--

Rick Weiser

unread,
Apr 14, 2017, 2:15:14 PM4/14/17
to jBASE
Problems with Triggers

I added a trigger to the CLAIMS file.  Here is the List-Trigger:

TYPE...... AMEND. TERM.. DEBUG. SUBROUTINE NAME..

postwrite  YES    NO     NO     MY.TRIGGER
postdelete YES    NO     NO     MY.TRIGGER

The subroutine MY.TRIGGER is very simple:

      SUBROUTINE MY.TRIGGER(FILENAME,EVENT,PRERC,FLAGS,NEW.RECORD.ID,NEW.RECORD,USERRC)
*
      INCLUDE JBC.h ;* JBASE ONLY
      
      BEGIN CASE
         CASE EVENT = TRIGGER_TYPE_POSTWRITE
         CASE EVENT = TRIGGER_TYPE_POSTDELETE
         CASE 1
            RETURN
      END CASE

The problem is that FILENAME is always "0".  Why?  This makes no sense.  In the 34 docs it states that:

Filevar

The file variable associated with the update. For example, you can do:
WRITE var ON filevar,"newkey" 


But this is not the case.

HELP!

Thanks,

Rick

On Friday, April 14, 2017 at 11:18:27 AM UTC-4, ma...@proman.com wrote:

The introduction patch from 1999 provides a bit more.

 

http://www.jbase.com/r5/knowledgebase/ReleaseNotes/Public/Patches/PN3_30079.htm

 

 

 

From: jb...@googlegroups.com [mailto:jb...@googlegroups.com] On Behalf Of Rick Weiser
Sent: Friday, April 14, 2017 7:51 AM
To: jBASE <jb...@googlegroups.com>
Subject: Re: Back doing some jBASE work

 

Its JBASE_WARNLEVEL=6

 

Thanks,

 

Rick

On Thursday, April 13, 2017 at 11:45:18 AM UTC-4, Rick Weiser wrote:

Hi Guys,

 

So, I am back doing some jBase work after a long absence.  It's been at least 15 years and I am a little rusty.  The client is working on v3.4 and will at some point move to v5.

 

For the life of me I can't remember how to find if a file is in the JEDIFILEPATH and what its path is.

 

I know it a silly question but I need to know that the file being used is the correct file in the path.

 

Thanks,

 

Rick

--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to jB...@googlegroups.com

To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com


For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups "jBASE" group.

To unsubscribe from this group and stop receiving emails from it, send an email to jbase+unsubscribe@googlegroups.com.

Rick Weiser

unread,
Apr 14, 2017, 2:30:37 PM4/14/17
to jBASE
OK, so you guys are way too slow :).

The filevar returned is the internal filename.  You need to use the IOCTL GETFILENAME to retreive the real filename.

thanks anyway

Rick

Lawrence J. Rizzo

unread,
Apr 14, 2017, 3:17:59 PM4/14/17
to jb...@googlegroups.com

Rick,

 

The first parameter in the trigger subroutine arguments is actually the file handle… not the name of the file.  (Which is why you are seeing 0.) 

 

See “Assignment of Trigger Subroutine Arguments“ in: https://www.jbase.com/r5/knowledgebase/manuals/3.0/30manpages/man/adv22_TRIGGER.API.htm

 

Larry

To unsubscribe, send email to jBASE-un...@googlegroups.com


For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups "jBASE" group.

To unsubscribe from this group and stop receiving emails from it, send an email to jbase+un...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--

--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to jB...@googlegroups.com

To unsubscribe, send email to jBASE-un...@googlegroups.com


For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups "jBASE" group.

To unsubscribe from this group and stop receiving emails from it, send an email to jbase+un...@googlegroups.com.

Richard Kann

unread,
Apr 14, 2017, 3:30:22 PM4/14/17
to jb...@googlegroups.com

  JBASE_WARNLEVEL=4

is the best setting to avoid crashing for non-zero divides, var not assigned a value, etc.

I put together a menual for 3.x and 5.x of the various optimum settings. Contact me personally to discuss it.


Richard Kann

Comp-Ware

--

Rick Weiser

unread,
Apr 19, 2017, 9:48:07 AM4/19/17
to jBASE
Another question, What is the name of the MD entry that runs the login proc?

On Thursday, April 13, 2017 at 11:45:18 AM UTC-4, Rick Weiser wrote:

Daniel Klein

unread,
Apr 19, 2017, 5:36:20 PM4/19/17
to jb...@googlegroups.com
It's the same as the name from the 'who' command. To envoke it, append a '-' as an argument to the 'jsh' command:

jsh -

--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-unsubscribe@googlegroups.com

For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

---
You received this message because you are subscribed to the Google Groups "jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbase+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages