Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2442
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 Member


Joined: 30 Nov 2013
Posts: 574
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: 445
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
No new posts Information About the Equifax Securit... Rohit Umarjikar PC Guides & IT News 6 Mon Sep 11, 2017 9:10 pm
No new posts retrieving envelope information out o... VintageReceiver TSO/ISPF 6 Thu Aug 10, 2017 8:13 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts PA02 - Programmtically control attent... dodithegreat IMS DB/DC 1 Thu Apr 06, 2017 8:33 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us