Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Need to match only the program names

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Gopalakrishnan V

Active User


Joined: 28 Jun 2010
Posts: 102
Location: chennai

PostPosted: Wed Nov 26, 2014 1:14 pm    Post subject: Need to match only the program names
Reply with quote

Hello,
I need to write a jcl.
Suppose i have an input ps file named INPUT1. INPUT1 contains the names of 20 programs. Example :
prog1
prog2
prog3
...
prog20.
Now i need to compare these program names of ps file named INPUT1 with another existing pds for ex: INPUT2.PDS which contains 30 members of which 20 members are having the same program name as INPUT1.
example : INPUT2.PDS
prog1
prog2
prog3

prog20
prog21
...
prog30
I need to match only the program names that are in INPUT1 with INPUT2.PDS. That is 20 program names will match.Now i need to copy the
contents of the 20 programs to my output pds file.
Please help me with the code.Thanks in advance
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7312

PostPosted: Wed Nov 26, 2014 1:29 pm    Post subject: Reply to: JCL
Reply with quote

It's a simple JOINKEYS to do the match, then generate some cards for something else. IEBCOPY for one example.
Back to top
View user's profile Send private message
Gopalakrishnan V

Active User


Joined: 28 Jun 2010
Posts: 102
Location: chennai

PostPosted: Wed Nov 26, 2014 4:31 pm    Post subject: Reply to: Need to match only the program names
Reply with quote

That was helpful.i got the output.Thank you
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7312

PostPosted: Wed Nov 26, 2014 4:38 pm    Post subject: Reply to: Need to match only the program names
Reply with quote

Can you post what you used, please. It can help someone in the future with a similar task.
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 Fetch the Dataset names from inside m... kalyan94 TSO/ISPF 18 Wed Jun 17, 2020 2:06 pm
No new posts Print next line strings when a condit... tgmuntor DFSORT/ICETOOL 9 Wed May 20, 2020 9:08 pm
No new posts In JCL Procedure how we can execute R... Dhananjayulu Neeli CLIST & REXX 7 Sat May 16, 2020 12:01 am
No new posts APCT Abend while running an online CI... amitc23 CICS 1 Wed May 06, 2020 9:59 am
No new posts Finding Esoteric Unit Names Programma... schippsid All Other Mainframe Topics 2 Mon May 04, 2020 9:11 pm

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