View previous topic :: View next topic
|
Author |
Message |
rohit jaiswal Warnings : 2 New User
Joined: 09 Mar 2006 Posts: 36 Location: hyderabad,A.P
|
|
|
|
hi freinds
i have a situation where in a pds i have some where around 400 jcls. the main thing that i have to do is that i need to find in which all jcls the region parameter is used and copy that jcl in other pds. it is difficult for me to open each and evrey jcl and check for the region paramaeter and then copy it manually. i came to know from one of my senior that it can be done using sort but i dont know how to go about it. please help.
if any one has idea about it do let me know.
thanks in advance.
regards
rohit |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Not sure what your senior had in mind (maybe you should ask him/her). Sort products can only operate on one member at a time. I can't think of an easy way to use sort to copy each member in a PDS with 'REGION=' to another PDS. |
|
Back to top |
|
|
rohit jaiswal Warnings : 2 New User
Joined: 09 Mar 2006 Posts: 36 Location: hyderabad,A.P
|
|
|
|
hi frank
the following is the jcl
Code: |
//*
//TOOL EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=DPLVPGE.REGION2.JCLLIB,
// DISP=SHR
// DD DSN=DPLVPGE.REGION.JCLLIB,
// DISP=SHR
//FILE3 DD DSN=DPLVPGE.REGION1.JCLLIB,
// DISP=SHR
//TOOLIN DD *
SELECT FROM(IN) TO(FILE3) ON(1,8,CH) EQUAL(1)
/*
|
regards
rohit |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Huh? The JCL for what? What does that JCL have to do with what you described in your first post? |
|
Back to top |
|
|
Alain Benveniste
New User
Joined: 14 Feb 2005 Posts: 88
|
|
|
|
rohit,
Well, If you want to use DFSORT, this kind of need can be resolved through a rexx
Alain |
|
Back to top |
|
|
thirunarayanan
New User
Joined: 06 Oct 2006 Posts: 9
|
|
|
|
Hi Rohit
You could use SRCHFOR "REGION=" in the command prompt within your PDS. It will list all JCL which has REGION parameter coded in it.
This is the only easy way that I could think off. |
|
Back to top |
|
|
|