IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to Find for a "string" in the expanded part of


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nayak

New User


Joined: 13 Jul 2005
Posts: 37

PostPosted: Thu Aug 07, 2008 6:06 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 07, 2008 7:02 am
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Aug 07, 2008 7:12 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 07, 2008 7:23 am
Reply with quote

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
View user's profile Send private message
nayak

New User


Joined: 13 Jul 2005
Posts: 37

PostPosted: Thu Aug 07, 2008 7:30 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 07, 2008 7:58 am
Reply with quote

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
View user's profile Send private message
nayak

New User


Joined: 13 Jul 2005
Posts: 37

PostPosted: Thu Aug 07, 2008 8:16 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 07, 2008 9:02 am
Reply with quote

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
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Thu Aug 07, 2008 10:43 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 07, 2008 1:05 pm
Reply with quote

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
View user's profile Send private message
nayak

New User


Joined: 13 Jul 2005
Posts: 37

PostPosted: Thu Aug 07, 2008 3:10 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
Search our Forums:

Back to Top