Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: How to Find for a "string" in the expanded part of
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

Site Director


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

PostPosted: Thu Aug 07, 2008 7:02 am    Post subject:
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: 1703
Location: Australia

PostPosted: Thu Aug 07, 2008 7:12 am    Post subject:
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

Site Director


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

PostPosted: Thu Aug 07, 2008 7:23 am    Post subject:
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    Post subject: Reply to: How to Find for a "string" in the expand
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

Site Director


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

PostPosted: Thu Aug 07, 2008 7:58 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Aug 07, 2008 9:02 am    Post subject:
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: 401
Location: Mumbai

PostPosted: Thu Aug 07, 2008 10:43 am    Post subject: Reply to: How to Find for a "string" in the expand
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

Senior Member


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

PostPosted: Thu Aug 07, 2008 1:05 pm    Post subject:
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    Post subject: Reply to: How to Find for a "string" in the expand
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts Amount field is getting corrupted whe... thesumitk SYNCSORT 5 Tue Oct 18, 2016 8:20 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us