View previous topic :: View next topic
|
Author |
Message |
nayak
New User
Joined: 13 Jul 2005 Posts: 37
|
|
|
|
Hi ALL,
How to Find for a "string" in the expanded part of a JCL .Is there any Edit macro commad, as i have huge list to find,Instead of doing make data and finding manually.
Thanks
n. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Please clarify what you mean by "the expanded part of a JCL". An example would be good.
I also do not know what "make data" means and how that relates to finding manually. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Dick,
I'm going to take a stab in the dark and say the O/P wants to be able to scan the JCL as well as the procs contained in the JCL member.
The second part again another stab in the dark, the O/P is trying to say,
instead of making do (To manage to get along with the means available)
Gerry |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Gerry,
Maybe so. . . We'll see.
@nayak,
Once a string is "found", how will it be used?
If we understand wnat you want to accomplish (rather than "find a string") we may be able to offer more usable suggestions. |
|
Back to top |
|
|
nayak
New User
Joined: 13 Jul 2005 Posts: 37
|
|
|
|
Hi ,
When we do any JCL Syntax Check tool like JJ,JSCAN or JEM on a JCL, the proc will get expanded and will prompt if there is any syntax errors.
//JOb jobname....
//step1 exec proc1
proc1 expanded part here
//step2 exec proc2
proc2 expanded part here..
If do a simple find . it will find only in the JCL .It will not scan the expanded part. Now my requirement is to find in the Expanded part . Can this be acheived through any command.
Ofcourse we can find that in a different way by Making MD .. line command (make data ) all the JCL and the expanded part and then do a find we can able to acheive it .
But iam unable to use the Line commands inside the Macro
any idea to acheive this using a macro
Thanks
n. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Now i believe we better understand what you meant by "expanded". This would include replacing symbolic parameters with the run-time values, right?
When you search the expanded jcl and fnd a string, what is to happen then? |
|
Back to top |
|
|
nayak
New User
Joined: 13 Jul 2005 Posts: 37
|
|
|
|
HI ,
Yes ... If i encount the string what iam looking for ,in the expanded part .. I need to capture that JCL and do changes as per the requirement
Any way to acheive this .
Thanks
n. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Any way to acheive this |
Not that i'm aware of.
You might talk with the vondors of the various products you have use of and ask if there is a way to cause the output to go to a dataset or a member. There may already be something in one or more of those products.
Once the expanded code is in a file, the next part should be straight forward. |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
nayak,
no easy way to do MD automatically. You need to do that manually with line command MD99999 but after that, an edit macro can do the finds and whatever else you need. See the ISPF doc or google. Better also to do this in View instead of Edit so you don't accidentally save the data. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
nayak wrote: |
Yes ... If i encount the string what iam looking for ,in the expanded part .. I need to capture that JCL and do changes as per the requirement |
This again seems to be an ambitious project - how every time would you keep track on "what" should be changed with "what" ? |
|
Back to top |
|
|
nayak
New User
Joined: 13 Jul 2005 Posts: 37
|
|
|
|
Hi Anuj,
This will not happen frequently ... This happens very rarely in my case .. once for every 5 to 6 years. As the JCLS are in more in number , it was planned to do in this way.
Please share your idea... if you have
Thanks
n. |
|
Back to top |
|
|
|