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

list all members of a PDS into a PS dataset.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prafull

New User


Joined: 08 Dec 2006
Posts: 48

PostPosted: Thu Apr 19, 2007 12:42 pm
Reply with quote

Hi I wanted to list all members of a PDS into a PS dataset.
I tried following things but got maxcc=12

Code:

// EXEC PGM=IEBPTPCH                                                   
//SYSPRINT DD SYSOUT=O                                                 
//SYSUT1 DD  DSN=INPUT.PDS,DISP=SHR                           
//SYSUT2 DD  DSN=OUTPUT.PS,                                 
//            DISP=(NEW,CATLG,CATLG),                                   
//            MGMTCLAS=WORKW,                                           
//            SPACE=(TRK,(10,10),RLSE),                                 
//            DCB=(LRECL=80,BLKSIZE=19040,RECFM=FB)           
//SYSIN DD *                                                           
          PRINT  TYPORG=PS
          TITLE  ITEM=('PRINT PARTITIONED DIRECTORY OF A PDS',10)
/*                                                                     


The error msg is :
1
-PRINT/PUNCH DATA SET UTILITY
PRINT TYPORG=PS
TITLE ITEM=('PRINT PARTITIONED DIRECTORY OF A PDS',10)
EOF ON SYSIN
IEB421I I/O ERROR ,F5430LST, ,62EA,D,SYSUT1 ,GET ,WRNG.LEN.RECORD,00000000017000000,QSAM

can nebody help ?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Apr 19, 2007 12:45 pm
Reply with quote

INPUT.PDS is RECFM=FB, LRECL=80?
Back to top
View user's profile Send private message
prafull

New User


Joined: 08 Dec 2006
Posts: 48

PostPosted: Thu Apr 19, 2007 1:18 pm
Reply with quote

yes
Record format . . . : FB
Record length . . . : 80
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Apr 19, 2007 8:49 pm
Reply with quote

Hello,

You might want to go into tso/ispf 3.4 and display the dataset info. The dcb info may have been corrupted. . .

Please check and let us know.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Apr 19, 2007 9:24 pm
Reply with quote

Um, your input dataset is a PDS?

I think you need to specify PRINT TYPORG=PO
Back to top
View user's profile Send private message
vkphani

New User


Joined: 29 Oct 2003
Posts: 29

PostPosted: Fri Apr 20, 2007 11:04 am
Reply with quote

Try this.

Code:
// EXEC PGM=IEBPTPCH                                                   
//SYSPRINT DD SYSOUT=O                                                 
//SYSUT1 DD  DSN=INPUT.PDS,DISP=SHR                           
//SYSUT2 DD  DSN=OUTPUT.PS,                                 
//            DISP=(NEW,CATLG,CATLG),                                   
//            MGMTCLAS=WORKW,                                           
//            SPACE=(TRK,(10,10),RLSE),                                 
//            DCB=(LRECL=80,BLKSIZE=19040,RECFM=FB)           
//SYSIN DD *                                                           
          PUNCH TYPORG=PO
/*               
Back to top
View user's profile Send private message
prafull

New User


Joined: 08 Dec 2006
Posts: 48

PostPosted: Fri Apr 20, 2007 12:21 pm
Reply with quote

thanks for replies all icon_smile.gif

vkphani
code works but I do not want the contents of every member .. I just want to list down the member-names in the PDS.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Apr 20, 2007 12:27 pm
Reply with quote

Try IEBGENER with the PDS allocated to SYSUT1 but DO NOT specify a member name

//SYSUT1 DD DSN=my pds name,DISP=SHR
//SYSUT2 DD SYSOUT=*
Back to top
View user's profile Send private message
prafull

New User


Joined: 08 Dec 2006
Posts: 48

PostPosted: Fri Apr 20, 2007 1:33 pm
Reply with quote

I used SORT after vkphani 's code
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 -> JCL & VSAM

 


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 How to create a list of SAR jobs with... CA Products 3
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top