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

How can we find the word when the PROC is expanded in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kirankumart

New User


Joined: 04 Aug 2009
Posts: 10
Location: Hyderabad

PostPosted: Mon Nov 30, 2009 5:16 pm
Reply with quote

How can we find the word when the PROC is expanded in JCL.

Example: we have a jcl contains 5 PROC's, after doing JCL scan for syntax checking. we can find the words in the JCL by typing the "F <string>" on the command line. In the same way I want to find the strings in PROC.


Note: There is a line command which makes the those lines editable.

Can anyone knew about this line command...??
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Nov 30, 2009 5:40 pm
Reply with quote

Your question is not at all clear -- do you mean you want to view, browse, or edit the PROCLIB and look for strings in it, or do you just want to look for strings in the PROC after it was expanded in the JCL?

If you know the PROCLIB the procedures came out of, you can use ISPF View or Edit mode to access them and look for your strings. If you do not know the PROCLIB names, you must contact your site support group for assistance as only they can tell you the names (which vary by site).
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Nov 30, 2009 5:44 pm
Reply with quote

In IOF (thats my experience) you can see from which library the procedure was loaded. Again in IOF one could see the expanded proc.
Dont know if SDSF can do the same thing.

The one thing that is important, is that all job output has be in JES for
before mentioned spool browsers.
Back to top
View user's profile Send private message
kirankumart

New User


Joined: 04 Aug 2009
Posts: 10
Location: Hyderabad

PostPosted: Mon Nov 30, 2009 6:12 pm
Reply with quote

Let me explain the problem with an exapmle:

1.see the first screen shot contains the Proc.


2. Proc is expanded after the syntax check by doing jj

Now, I want to find the string "SYSLST" by doing the "F SYSLST" from the command line. Normally it will throw the message "No CHARS 'SYSLST' found".

There is a line command which will overcome this problem. Long time back i worked on this but i forgot that...
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Nov 30, 2009 6:26 pm
Reply with quote

all this time you could have looked up the MD line command
Back to top
View user's profile Send private message
kirankumart

New User


Joined: 04 Aug 2009
Posts: 10
Location: Hyderabad

PostPosted: Mon Nov 30, 2009 6:53 pm
Reply with quote

Thanks... I'm looking for this only....
Back to top
View user's profile Send private message
mtaylor

Active User


Joined: 20 Feb 2009
Posts: 108
Location: Kansas City

PostPosted: Mon Nov 30, 2009 7:05 pm
Reply with quote

I'm curious: what are doing that requires you to find words in the proc after the JCL is expanded?
Back to top
View user's profile Send private message
kirankumart

New User


Joined: 04 Aug 2009
Posts: 10
Location: Hyderabad

PostPosted: Mon Nov 30, 2009 7:09 pm
Reply with quote

Suppose if you want to find a dataset name ina PROC which will be overriding in the JCL... In those cases you can easily trace the dataset..
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Nov 30, 2009 7:20 pm
Reply with quote

Quote:
dataset name ina PROC which will be overriding in the JCL


more like:
dataset name in a PROC which will be overridden

well, funny thing is, symbolic substitution when used in a professional manner,
solves this problem.
Not only that, you don't have to spend all day waiting for a forum member
to show you how to override a DD entry.

A PROC containing hardcoded dataset names is really half-assed.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Nov 30, 2009 7:30 pm
Reply with quote

please do not post images, they are just a waste of space,
use a simple text cut and paste and the code tags...

You posted 9 lines using ~9 kbytes
a text cut and paste would have used only 720 bytes
Back to top
View user's profile Send private message
dejunzhu

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Tue Dec 01, 2009 8:00 am
Reply with quote

kirankumart wrote:


2. Proc is expanded after the syntax check by doing jj


May I ask, what do you mean by "doing jj"?
It seems to be a stupid question,but if you can let me know, I'll appreciate it.
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: Tue Dec 01, 2009 9:52 am
Reply with quote

Hello,

"doing jj" is similar to "doing" JEM, JCK, JCSAN etc. They are all site-specific.
Back to top
View user's profile Send private message
dejunzhu

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Tue Dec 01, 2009 1:48 pm
Reply with quote

dick scherrer wrote:
Hello,

"doing jj" is similar to "doing" JEM, JCK, JCSAN etc. They are all site-specific.

I'm sorry, but would you please make a explanation on each term?
I understand neither of them.
Back to top
View user's profile Send private message
ashutosh.pr

New User


Joined: 13 Apr 2007
Posts: 36
Location: Pune

PostPosted: Tue Dec 01, 2009 2:00 pm
Reply with quote

dejunzhu,
These are keywords which are site specific, which run the utilities to scan the Job and list any JCL related errors. They will give you errors of the kind - " The disposition of the file is not correct" , etc.
Depending on which Utility has been installed by your shop, the keyword to initiate this scan differs.
Currently my shop uses EJCK which is a utility developed by CA. Some other utility on some other shop might require you to type JEM to get the scan done.

Regards,
Ashutosh
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Dec 01, 2009 2:05 pm
Reply with quote

dejunzhu,

they are all site-specific. If you don't have the application software to run them,
you will not have them on your system.

if you are really interested in what they are, google.
Back to top
View user's profile Send private message
dejunzhu

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Tue Dec 01, 2009 8:12 pm
Reply with quote

Okay, I got it.
Thank you.
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: Wed Dec 02, 2009 3:52 am
Reply with quote

Hello,

Using the term loosely, they are all "JCL Checkers" from various vendors.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts replace word 'MONTH' with current mon... SYNCSORT 11
Search our Forums:

Back to Top