Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?



Enhancement: Add an option to the jshow command to display information about the jBASE system

Previous Release Behavior

The option didn't exist. 

Current Release Behavior

This enhancement involves using the new -d option, followed by optional operands. The help screen has been updated and is shown below. 

The output is a JSON string, enabling remote applications to easily capture, parse and use the output. 

jsh home ~ -->jshow -h
Usage: jshow.exe {-cfhpsv} Name {Name ...}
       jshow.exe -d {emulation | user | routine } {verbose , mangle , portnumber}
        -c      Create time and file display.
        -d      Display general information about the system
        -f      File name only search.
        -h      Display this help screen.
        -p      Program name only search.
        -s      Subroutine name only search.
        -v      Verbose mode.
        Name    Name of file,subroutine or program.

By default, jshow -d will show all of its available information as a JSON string. For example, 

jsh home ~ -->jshow -d

[ Lots of screen output removed ]

You can limit this screen output by adding 'emulation' and/or 'user' and/or 'routine'. 

There are other options of 'nnnn' which restricts the 'user' to a single portnumber, or 'verbose' (same as the -v option) or 'mangled' so the routine names are shown in their mangled format. 

For example, to display everything about port 123 you would do this 

jsh home ~ -->jshow -d user 123 verbose

[ Lots of screen output removed ]

All the information displayed is readily available as a jBASE Dynamic Object using the $system class. For example, to display all your routines (and the OS shared objects that contain them) you can use the code below -- note that this is functionally equivalent to executing "jshow -d routine" 

fbcentos-~/tmp5: ED . test6.jabba
New record
001+obj = new object("$system")
003+print obj->$tojson(1)
Record 'test6.jabba' written to file '.'
fbcentos-~/tmp5: jcompile test6.jabba -o test6
fbcentos-~/tmp5: test6

[ Lots of lines removed ]

Was this article helpful?