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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Historical/statistical details for me... elixir1986 TSO/ISPF 13 Wed Aug 30, 2017 9:02 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm

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