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 can we find the word when the PROC is expanded in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How can we find the word when the PROC is expanded in JCL
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: 7905
Location: Bellevue, IA

PostPosted: Mon Nov 30, 2009 5:40 pm    Post subject:
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Mon Nov 30, 2009 5:44 pm    Post subject:
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    Post subject: Reply to: How can we find the word when the PROC is expanded
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Nov 30, 2009 7:30 pm    Post subject: Reply to: How can we find the word when the PROC is expanded
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    Post subject: Re: Reply to: How can we find the word when the PROC is expa
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

Site Director


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

PostPosted: Tue Dec 01, 2009 9:52 am    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
Reply with quote

Okay, I got it.
Thank you.
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: Wed Dec 02, 2009 3:52 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 pm
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts how to find clist's or view library Andrew Hsia CLIST & REXX 4 Tue Jun 28, 2016 6:07 pm
No new posts How to find jobs that are in schedule... anilkumar922 All Other Mainframe Topics 5 Tue Jun 28, 2016 10:01 am


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