Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 4648
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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 4 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us