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
 
To scan a list of 10 members in a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: To scan a list of 10 members in a dataset
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

Moderator Team Head


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

PostPosted: Sat Jul 29, 2006 1:23 am    Post subject: Re: To scan a list of 10 members in a dataset
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to list data set names with diffe... murali.andaluri CLIST & REXX 8 Thu Apr 12, 2018 11:33 pm
No new posts List of jobs ran thru scheduler ddhar All Other Mainframe Topics 1 Tue Mar 27, 2018 4:32 am
No new posts How could i share my personal dataset... James Halley TSO/ISPF 1 Fri Mar 23, 2018 9:41 pm
This topic is locked: you cannot edit posts or make replies. How could i share my personal dataset... samenxia163 TSO/ISPF 1 Fri Mar 09, 2018 12:18 pm
No new posts Get the list of data sets on DASD and... rakaitn JCL & VSAM 3 Thu Mar 08, 2018 12:38 pm

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