Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Which Control block has the DSNTYPE information

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Which Control block has the DSNTYPE information
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri Jan 29, 2016 11:33 am    Post subject:
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 User


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

PostPosted: Fri Jan 29, 2016 12:05 pm    Post subject:
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 User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Wed Feb 03, 2016 1:47 am    Post subject:
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    Post subject: Reply to: Which Control block has the DSNTYPE information
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts Obtaining file information pahiker COBOL Programming 25 Tue Sep 27, 2016 7:25 pm
No new posts SORT Block of records girishb2 DFSORT/ICETOOL 12 Thu Sep 15, 2016 8:58 am
No new posts Need information on COBOL MOVE CORRES... subratarec COBOL Programming 10 Tue Jun 28, 2016 10:38 pm
No new posts Passing information through JCL as in... Pia Baruah JCL & VSAM 5 Wed May 25, 2016 2:22 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us