MYINFO is a freeware tool from GreenHouse Software & Consulting.
It displays FILEINFO data of a given set of system and WasteBasket
file(s), where the user can qualify the files to be displayed with the
following file attributes:

- ALL
- BROKEN
- CLEARONPURGE
- CRASHOPEN
- DATE          [=|<|>|<>]  <date-n-time>
- EOF           [=|<|>|<>]  <eof>
- EXECUTABLE
- FILECODE|CODE [=|<|>|<>]  <file-code>
- FILETYPE|TYPE [=|<|>|<>]  <file-type>
- MAXEXT[ENTS]  [=|<|>|<>]  <max-ext>
- LICENSE[D]
- OPEN
- OWNER         [=|<|>|<>]  <group,name|group,*|Guardian Name|Alias Name>
- PROGID
- RECSIZE       [=|<|>|<>]  <record size>
- SECURITY <["]rwep["]>
- SUNNARY|STAT
- NOLIST
- -NOWB

In addition, MyInfo can collect and display summary information:
- number of files displayed
- accumulated EOF of displayed files

OSS files are skipped, because they are not of interest for a GUARDIAN
user. To force MyInfo to display OSS files as well, the last word in
the command line has to be: OSSOK


It as well displays files from the WasteBasket system, matching the
file name template.
These two PARAMs are taken into account:
PARAM VIDEO <nn>           <nn> is the video attribute number.

                           To see all available video appearances,
                           execute the command:  MYINFO -VIDEO
                           Use the number of the attribute which best
                           fits your expectations.

                           Default is 48.

PARAM WASTEBASKET ON|OFF   ON causes MyInfo to check the WasteBasket
                           system - in case there is one.
                           Can be overruled by the -NOWB command attribute.

                           OFF prevents MyInfo from checking the wasteBasket
                           system.
                           Can be overruled by the -WB command attribute.

                           Default is ON.

WasteBasket files are displayed according to their name; no other
quality attribute is taken into account.
A file from the WasteBasket is displayed along with the number of
occurrences.


To keyword -VIDEO displays the appearance of the available video
attributes.

The keyword -NOWB suppresses checking the WasteBaske, while the keyword
-WB activates checking the WasteBasket. Both keywords can be given
anywhere in the command string.


Command syntax is:
 [run] MYINFO [/OUT <file>/] [-H[ELP]] [fileset] [WHERE|BY attributes] [SUMMARY]
                                                                       [NOLIST]
                                                                       [OSSOK]
                                                                       [-NOWB]
                                                                       [-WB]
or
 [run] MYINFO [/OUT <file>/] [-H[ELP]] [fileset] [WHERE|BY attributes] [STAT]
                                                                       [NOLIST]
                                                                       [OSSOK]
                                                                       [-NOWB]
                                                                       [-WB]

where:
  <file>        OUT file
  -H[ELP]       causes SHOWUSER to display help information.
  fileset       is a collection of file names, or locations, from
                which information has to be returned.
                Delimiter characters are blanks or commas.
  WHERE|BY      keyword, at which attributes start
  attributes    file attributes, used to mask files:
                - BROKEN
                - CLEARONPURGE
                - CRASHOPEN
                - DATE          [=|<|>|<>] <date-n-time> (ddmmmyyyy hh:mm:ss)
                                                     e.g. 21dec2004 13:34:00
                                                           3jan2005 11:44
                - EOF           [=|<|>|<>] <eof>
                - FILECODE|CODE [=|<|>|<>] <file-code>
                - FILETYPE|TYPE [=|<|>|<>] <file-type> (0 .. 3, U .. K)
                - LICENSE[D]
                - MAXEXT[ENTS]  [=|<|>|<>] <max-ext>
                - OPEN
                - OWNER [=|<|>|<>] <group,name|group,*|Guardian Name|Alias Name
                  An Alias name is translated into the related GUARDIAN ID
                - PROGID
                - SECURITY <["]rwep["]>
                  rewp supports wild cards, e.g.  ?N?O, "??OO", *A* etc.
                Where attributes have to be supplied as e.g.
                  WHERE owner = ghs.carl and security = ??n-
                The filler word AND is optional.

                All attributes are ANDed!

  attributes    file attributes, used to allow OSS files to be
                displayed as well
                - ALL


  SUMMARY or    directs MyInfo to display summary information
  STAT

  NOLIST        suppresses file information, but allows SUMMARY

e.g.

   MYINFO/OUT carl/

writes all FILEINFO data of the actual users location into file carl


   MYINFO *,where code = 101 and owner = ghs.carl and security = "??00"

displays all files from the current location, when they are:
 - EDIT type files (code = 100), AND when the
 - OWNER is ghs.carl, AND when the
 - SECURITY matches the template "??OO" (zeros are translated to "O")

The same command looks like this when the 'filler words' and
characters are eliminated:
   MYINFO * where code 101 owner ghs.carl security ??00

OSS files are taken into account when
 - the file template is an OSS file (subvol = ZYQ00000) or
 - the ALL
keyword is part of the command string.
e.g.
  MYINFO *.*,WHERE ALL      displays ALL files, matching the template
                            including OSS files

Commas (,), the key word WHERE, the equal sign (=) and the quotation
marks of the security string are optional.
MYINFO anyway 'understands' them to allow a readable' command.


The appearance of MyInfo can be controlled by the individual user by
making use of the two available PARAMs:
 1. PARAM VIDOO
 2. PARAM WASTEBASEKT
in the users TACL Macro file (MYMACS) as follows:

1. Macro FI is a replacement for the FILEINFO command, displaying
   files from the WasteBasket.

 ?section fi macro
 #push #param video
 #push #param wastebasket
 #set  #param video 48
 #set  #param wastebasket on
 $vol.subvol.myinfo %1% %2% %3% %4% %5% %6% %7% %8% %9%
 #pop #param video
 #pop #param wastebasket

2. Macro FIN is a replacement for the FILEINFO command, suppressing
   the display of files from the WasteBasket.

 ?section fin macro
 #push #param video
 #push #param wastebasket
 #set  #param video 48
 #set  #param wastebasket off
 $vol.subvol.myinfo %1% %2% %3% %4% %5% %6% %7% %8% %9%
 #pop #param video
 #pop #param wastebasket



In case you like the tool: Feel free to use it!
In case you stumble into a bug: Please let me know, and I fix it!


Very similar functions are available with FUP, and a tool from Kari
Kujansuu:  His SELECT utility supports ALL file attributes and
wildcards in all string attributes etc. ... :-)

e.g.:
  SELECT FILE $ghs*.secom*.* filename,eof,security where filecode=101 and
              ownername like ghs.* and security like n??? or ...

You can find it at: http://194.251.228.100:5555/kku/



Carl Weber
GreenHouse Software & Consulting
Heinrichstrasse 12
D-45711 Datteln/Horneburg
Germany
Carl.Weber@GreenHouse.de
07Mar2014
