Layout of catalog required 
Author Message
 Layout of catalog required

Can anyone advise me as to name of a mapping macro or DSECT for the
256 byte catalog area as fetched by the LOCATE with CAMLST NAME
macro combination. I have a rough map of a few of the fields, but
I need more detail.

thanks

--

Ornum Software Ltd (S)   Tel/Fax:+44(0)181 570 8785
                    ~    Mobile: +44(0)777 160 1496



Fri, 05 Jan 2001 03:00:00 GMT  
 Layout of catalog required
Check

http://ppdbooks.pok.ibm.com:80/cgi-bin/bookmgr/bookmgr.cmd/BOOKS/DGT1...


Quote:
>Can anyone advise me as to name of a mapping macro or DSECT for the
>256 byte catalog area as fetched by the LOCATE with CAMLST NAME
>macro combination. I have a rough map of a few of the fields, but
>I need more detail.

>thanks

>--

>Ornum Software Ltd (S)   Tel/Fax:+44(0)181 570 8785
>                    ~    Mobile: +44(0)777 160 1496

-- Steve Myers

The E-mail addresses in this message are private property.  Any use of them
to  send  unsolicited  E-mail  messages  of  a  commerical  nature  will be
considered trespassing,  and the originator of the message will be  sued in
small claims court in Camden County,  New Jersey,  for the  maximum penalty
allowed by law.



Fri, 05 Jan 2001 03:00:00 GMT  
 Layout of catalog required



Quote:
> Can anyone advise me as to name of a mapping macro or DSECT for the
> 256 byte catalog area as fetched by the LOCATE with CAMLST NAME
> macro combination. I have a rough map of a few of the fields, but
> I need more detail.

> thanks

> --

> Ornum Software Ltd (S)   Tel/Fax:+44(0)181 570 8785
>                     ~    Mobile: +44(0)777 160 1496

I thought I had something that did use the DSECT name
but now I have found the code ,  it looks like I had hard coded
the dsect. Anyhow here it is in case it is of any use.
The note about the SPL in the comments was probably
referring to the old MVS/SP System programming library Data
Management book. This is probably still around at the back of
our library under a half inch of dust if you are still desperate.

*----------- CAMLST for LOCATE -----------------------------------*  
*                                                                    
CAMLOC   CAMLST NAME,LOCNAME,,LOCAREA        CAMLIST FOR DSN LOCATE  
LOCNAME  DS CL44                                                    
LOCAREA  DS 0D                                                      
         DS 265C                                                    
         ORG LOCAREA                 ORG BACK                        
LOCOUNT  DS H                                                        
LOCDEV   DS 4X                       DEVTYPE                        
LOCVOL   DS 6C                       VOLSER                          
         ORG LOCAREA                 ORG BACK                        
PADD     DS CL2                                                      
         DS CL240    20 x 12 byte entry as above                    
         DS CL10     10 bytes of zeros                              
LOCTTR   DS CL3      either the DSCB TTR or zeros                    
         ORG                                                        
* the best explantion I have found for the above layout is          
* fig. 6 p 29 of thr SPL  : Data management                          
*  

--
Les Smith - Software Engineer/WebMaster
Ringwood Software - "Trove -  Word documents on the Intranet made easy!"  
http://www.*-*-*.com/
The Websmiths - Ascension Island {*filter*}-visit and more  
http://www.*-*-*.com/

Phone : +44 1296 432011     Fax:  +44 1296 489776                          



Tue, 09 Jan 2001 03:00:00 GMT  
 Layout of catalog required


Quote:
>I do remember looking at some code once that used SVC26 to do a generic
>catalog lookup, returning a huge list of dataset names.  That's the kind
>of complexity that I think IBM must keep a secret - or at least I could
>never find those parms documented anywhere.

The "Generic Locate" function you're referring to (if I'm not mistaken)
never was formally documented, although it's mentionned in the logic
manuals.  It's not a well-kept secret: one can find several programs on
the CBT tape or Xephon which build a CTGPL and do a Generic Locate or some
LISTCAT functions (using CTGFL to define fields).  BTW, the IEZCTGPL and
IEZCTGFL mapping macros are on the DFP optional material tapes
(unfortunately, IEZCTGFV, required for the DEFINE and ALTER functions, is
not).  Generic Locate is often referred to as "Super Locate" which I find
improper: Super Locate is a family of functions, Generic Locate is only
one of them.  

<war_story>

back in 1976, as a junior MVS sysprog, I remember being intrigued by
Generic Locate.  To figure out how it worked, I ran a IDCAMS LISTCAT
LEVEL(XXX), used GTF to trace SVCs, identified SVC 26 instructions and
patched them to X'0000' in a copy of IDCAMS to get a dump of the
parm-list.

</war_story>

The Catalog Information Routine (IKJEHCIR) is the only documented
interface to Generic Locate.  Although it looks like a TSO module (it's
documented in the TSO manuals), IKJEHCIR is owned by DFP: good luck to
find someone in DFP to even acknowledge they own it, let alone support it.

Generic Locate and the CIR require the user to specify a work area into
which the dsnames and entry types are returned.  The original format-1
work area could only be 64K in length, which only allows for 1456 (i.e.
65535/45 ) data sets.  I think it was DF/EF that introduced the format-2
work area whose length can be 2-gigs, allowing for more data sets one can
count in a life-time.  BTW, it took the CIR almost 15 years to be updated
to use the f2-workarea.

DFP 3.1 introduced the never-documented Generic Filter Locate (GFL) later
dressed up as the Catalog Search Interface (CSI).  GFL is a combination of
Generic Locate and LISTCAT which works across multiple ICF catalogs, and
has a "resume" feature if the work-area is too small.  Generic Locate, on
the other hand, works only with one catalog, supports VSAM, CVOL and ICF,
has no "resume" capability, and only returns dsnames and catalog-entry
types.

This was today's history lesson; monday, there'll be a quiz on the subject
- be prepared, no cheat sheets allowed :=)


PS: the original poster asked for a macro to map the 265-byte area
returned by a LOCATE/CAMLST request; I don't think IBM provides such a
macro, even in the optional materials.  I've built a DSECT from the SVC 26
code (IGC0002F) which is, I believe, the only place where the old-format
CAMLST is processed.  Here it is:

 * LOCATE/CAMLST WORK AREA FROM IGC0002F
 RETDATA  DSECT
 VOLENTCT DS    H                       VOLUME COUNT
 VOLST    DS   0XL12                    VOLUME ENTRY
 DEVTYP   DS   0XL4                     DEVICE TYPE
 DEVMODEL DS    X                       X'00' MEANS "ESOTERIC"
          DS    X
 DEVCLASS DS    X                       DEVICE CLASS
          DS    X
 VOLSER   DS    CL6                     VOLUME SERIAL
 FSN      DS    H                       FILE SEQUENCE NUMBER
          DS    19XL(L'VOLST)           ROOM FOR 19 VOLUMES
          DS    10X                 242 UNUSED
 RETDSCBT DS    XL3                 252 DSCB TTR
          DS    XL4                 255 UNUSED
 RETVCBLK EQU   RETDSCBT                TTR OF NEXT VCB
 RETCVOL  DS    CL6                 259 CVOL
          DS    0X                  265



Wed, 10 Jan 2001 03:00:00 GMT  
 Layout of catalog required
 I once wrote my own catalog lister, using svc 26 services to get data
of various kinds from the catalog.  The code isn't pretty, and a bit too
long to put in line here, but if anyone wants a copy, I can mail the
source..
  The routine looks at entries from the old CVOL catalog or from ICF
VTAM catalogs.
--
This message comes from NaSCOM, the official internet server of NaSPA, THE
Network and System Professionals Assocation, with over 40,000 members in 72
countries.  Contact http://www.naspa.net for free trial membership or
X116 or fax (414) 768-8001 or (414) 768-8000 x116 voice.


Fri, 12 Jan 2001 03:00:00 GMT  
 
 [ 9 post ] 

 Relevant Pages 

1. PRINTING LAYOUT OF PROGRAMS AND DICTIONARY LAYOUTS

2. require, require-library in PLT-scheme

3. Function layout - a non-issue?

4. Windows NT keyboard layout

5. Problem with framing layout on a system using large fonts

6. Graph Layout in Smalltalk

7. Drop-down in a proportional layout manager

8. Flow Layout Flaw? - rightSample.vu (1/1)

9. View Composer + Flow Layout

10. Layout Classes?

11. Link Editor file layout

 

 
Powered by phpBB® Forum Software