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

How to determine if dataset is Sequential?


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anjali_tcs

New User


Joined: 09 Jun 2008
Posts: 10
Location: GGN

PostPosted: Mon Aug 24, 2009 10:33 am
Reply with quote

Hey all,

I am using following ISPF service to determine if my dataset is Sequential

Code:

 ADDRESS ISPEXEC "LMDLIST LISTID("DTPDS") DATASET(DS) OPTION(LIST) STATS(YES)"                                     
 IF  ZDLDSNTP  = ' ' THEN SAY 'It is a sequential dataset'


Manual says that ZDLDSNTP can have value of PDS, LIBRARY, or ’ ’. I checked value of ZDLDSNTP for a sequential dataset and it was space.

Can i safely assume that value of space in ZDLDSNTP will mean a Sequential dataset? It is not explicitly mentioned anywhere. Also if there is any other ISPF service that can sort out my problem then please advise.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1325
Location: Vilnius, Lithuania

PostPosted: Mon Aug 24, 2009 10:45 am
Reply with quote

Use LISTDSI
Back to top
View user's profile Send private message
anjali_tcs

New User


Joined: 09 Jun 2008
Posts: 10
Location: GGN

PostPosted: Mon Aug 24, 2009 11:06 am
Reply with quote

LISTDSI Works perfectly fine. Thank you!
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Aug 24, 2009 11:08 am
Reply with quote

Hi,

as mentioned in a previous thread, for LISTDSI the dataset has to reside on a direct access storage device.


Gerry
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Free space of a mulitvolume PS datase... TSO/ISPF 7
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts Avoid job abend on dataset held by us... JCL & VSAM 6
No new posts Identify Number of Multivolume Dataset All Other Mainframe Topics 5
No new posts batch SFTP job using AOPBATCH unable ... All Other Mainframe Topics 7
Search our Forums:


Back to Top