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

To scan a list of 10 members in a dataset


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

New User


Joined: 12 Mar 2006
Posts: 21

PostPosted: Sat Jul 29, 2006 12:00 am
Reply with quote

I have a requirement to scan a list of 10 members in a dataset and I have to extract a variable (in all 10 members) in position 6 in the first line of every member. Finally , I have to write the member name and the variable in output dataset.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Sat Jul 29, 2006 1:23 am
Reply with quote

OK...
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Jul 29, 2006 5:32 am
Reply with quote

Give this a try:

(You may have to edit the O/P dataset to give it the look you want.)
Code:
 


//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,'ANYC')
//*EWDD DD DSN=SPEC.PROD.SOURCE,
//*EWDD DD DSN=JS6855.PJT.LIBRARY,
//NEWDD DD DSN=SPEC.PROD.JCL,
//*EWDD DD DSN=SPEC.QUAL.JCL,
//*EWDD DD DSN=SPEC.TEST.JCLLIB,
//*EWDD DD DSN=JS6855.PJT.JCLLIB,
//*EWDD DD DSN=RB6605.PWM.JCLLIB,
//*EWDD DD DSN=JS6855.PJT.PRDJCL,
//*EWDD DD DSN=SPEC.TEST.CNTLLIB,
//*EWDD DD DSN=SPEC.PROD.CNTLLIB,
//*EWDD DD DSN=JS6855.PJT.CNTLLIB,
//*EWDD DD DSN=JS6855.PJT.LISTLIB,
// DISP=SHR
//*OUTDD DD SYSOUT=(,),OUTPUT=*.LOCPTR
//*OUTDD DD SYSOUT=*
//OUTDD DD DSN=YRID.MYLIST,
// DISP=(,CATLG,DELETE),...
//SYSIN DD *
SRCHFOR '_'
SELECT INPLKBAT,FAPLKBAT,DWPLKBAT,HOPLKBAT,UMPLKBAT,REPLKBAT,DRPLKBAT
SELECT AUTMASTV,AUTMST95,AUTOMAST,AUTOMSTR,VAUTMAST
//
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 -> JCL & VSAM

 


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 PDS member list with stats JCL & VSAM 6
Search our Forums:


Back to Top