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: 1306
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top