IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Which Control block has the DSNTYPE information


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sudarshan.srivathsav

New User


Joined: 10 Jul 2012
Posts: 24
Location: USA

PostPosted: Thu Jan 28, 2016 11:29 pm
Reply with quote

Hi Friends,

I did a lot of research but I cannot see one place where it says the DSNTYPE information. I have to find whether the input file is HFS or not.

There is a Macro IEFSJDKY in SYS1.MACLIB which gives the different types of DSNTYPE values like:
Code:

 * Values for DSNTYPE keyword                     
 SJVLDTLI  EQU   X'80'           LIBRARY         
 SJVLDTPD  EQU   X'40'           PDS             
 SJVLPIPE  EQU   X'20'           PIPE             
 SJVLHFSI  EQU   X'10'           HFS             
 SJVLEXR   EQU   X'08'           EXTREQ           
 SJVLEXP   EQU   X'04'           EXTPREF         
 SJVLBASC  EQU   X'02'           BASIC           
 SJVLLARG  EQU   X'01'           LARGE         


Can someone please tell me from which Control block I can get the above information, how to get there, JFCB/DCB/DEB is not pointing me to there.

I know there is shortcut way from JFCB to check if JFCBDSNM is a constant instead of file name, since if PATH is specified then it has constant value, but what if I want to find the other DSNTYPE's?.

I did notice that SMF 16 -DFSORT STATS, they have this field ICEINTYP which says the TYPE of file, but from which CONTROL block they get this information. I need that.

Please help me at your earliest convenience. Thanks all!
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jan 29, 2016 11:33 am
Reply with quote

Its defined in the SMS data class. With DSNTYPE in JCL it is possible to override data class DSNTYPE parameters.
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Fri Jan 29, 2016 12:05 pm
Reply with quote

DSNTYPE is pretty much an allocation attribute. Once the data is allocated DSNTYPE pretty much disappears. LIBRARY (PDSE), HFS or PDS can be inferred from the VTOC. LARGE, too, can be inferred from the VTOC. Look at SYS1.MODGEN(IECSDSL1).
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Wed Feb 03, 2016 1:47 am
Reply with quote

A simple LISTCAT of the file indicates if it is ZFS format under the ATTRIBUTES field of the Data component. I 'think' this field may only be switched on after the file has been formatted by PGM=IOEAGFMT otherwise it just appears as a normal VSAM linear dataset. So I'm not sure if the ZFS attribute is even available at allocation time. There's no fields in the SMS Dataclas to indicate a file is ZFS format or not. ZFS is not a valid option for DSNTYPE, only HFS is.


Code:
DATA ------- A.ZFS.FILE.DATA                                           
  IN-CAT --- USER.A.CATALOG                                           
  HISTORY                                                                   
    DATASET-OWNER-----(NULL)     CREATION--------2009.070                   
    RELEASE----------------2     EXPIRATION------0000.000                   
    ACCOUNT-INFO-----------------------------------(NULL)                   
  PROTECTION-PSWD-----(NULL)     RACF----------------(NO)                   
  ASSOCIATIONS                                                               
    CLUSTER--A.ZFS.FILE
  ATTRIBUTES                                                                 
    KEYLEN-----------------0     AVGLRECL---------------0     BUFSPACE-------
    RKP--------------------0     MAXLRECL---------------0     EXCPEXIT-------
    SHROPTNS(3,3)      SPEED     UNIQUE           NOERASE     LINEAR        N
    NONSPANNED           ZFS                                                 
  STATISTICS                                                                 
Back to top
View user's profile Send private message
sudarshan.srivathsav

New User


Joined: 10 Jul 2012
Posts: 24
Location: USA

PostPosted: Tue Feb 09, 2016 10:22 pm
Reply with quote

Thanks a lot for your reply!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts I need a 4 lines block where substrin... DFSORT/ICETOOL 12
No new posts How to remove block of duplicates DFSORT/ICETOOL 8
No new posts Help Control-R IBM Tools 2
Search our Forums:

Back to Top