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
 

 

Searching Natural programs in a Library for a specific word

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Thu Dec 21, 2006 11:03 am    Post subject: Searching Natural programs in a Library for a specific word
Reply with quote

Hi all,

Can anyone please tell me if there is any facility to search natural programs for a specific word ??

I need to check whether how many programs are using a particular table.
So if there is any provision like the 3.14 option in ISPF, then the task will be much simpler.

Please clarify my query as early as possible.

Many Thanks in Advance!!!

icon_lol.gif
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Dec 21, 2006 11:31 am    Post subject:
Reply with quote

There is a SCAN command in NATURAL. When you invoke SCAN outside the editor, you get a screen allowing you to input scan value, replace value, library, absolute mode etc.

A batch invocation of this utility is straightforward, and should look like this:
Code:
//V08020FT JOB (),@SCAN,MSGCLASS=X,CLASS=U,NOTIFY=&SYSUID               
//**********************************************************************
//* NATURAL SCAN                                                       *
//**********************************************************************
//NAT   EXEC NAT2TEST,OUTCLAS=X,PARM='IM=F'                             
//STEPLIB DD DISP=SHR,DSN=SYS3.ADABAS.COLTEST.LOAD                     
//SYSIN   DD *                                                         
LOGON library                                                           
SCAN                                                                   
S                                                                       
scan-value                                                             
replace-value (or blank line)                                           
library (blank for current library)                                     
program-name or *                                                       
program-type or *                                                       
absolute (Y/N)                                                         
                                                                       
FIN                                                                     
/*                                                                     
//                                                                     
//**********************************************************************
//*                                                                    *
//* Attention: Although there are simpler ways to invoke NATURAL scan, *
//*                                                                    *
//*            this is the safest one.                                 *
//*                                                                    *
//*            This method let you scan for blank-delimited values,    *
//*                                                                    *
//*            and bypass the old bug that replace the first word in   *
//*                                                                    *
//*            the scan value by the second one.                       *
//*                                                                    *
//*            Do not delete the blank line at the end !!!             *
//*                                                                    *
//*            If you don't have a 'replace' value, keep the           *
//*                                                                    *
//*            'replace-value' line blanked !!!                        *
//*                                                                    *
//**********************************************************************


O.
Back to top
View user's profile Send private message
prasanth_urs

New User


Joined: 04 Dec 2006
Posts: 44
Location: Pune,India

PostPosted: Thu Dec 21, 2006 12:23 pm    Post subject: Re: Searching Natural programs in a Library for a specific
Reply with quote

hi Ofer,

Thank you for the quick response....!

But the Proc NAT2TEST is not available for me to use.The only avaialble Proc related to this name is NAT3TEST which is calling a program NATLBATN.

Please clarify my question,whether i can use NAT3TEST Proc ? otherwise can you please provide me the NAT2TEST Proc.

Thank you once again! icon_biggrin.gif
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Dec 21, 2006 3:30 pm    Post subject:
Reply with quote

Shops create their own NATURAL-batch proc. This is mainly because you can have multiple NATURAL nucleuses, thus multiple DDCARDs are required. In addition, seperate procs allow for different parameters to NATURAL or ADABAS.

To summerize, simply use the proc that is usually in use at your shop for NATURAL batch invocations. The syntax for the SCAN is identical for all NATURAL nucleuses.

O.
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 -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Why myself doing Package Bind always ... Susanta DB2 5 Thu Mar 02, 2017 10:47 pm
No new posts Route a product's job to specific lpar vasanthz All Other Mainframe Topics 9 Thu Mar 02, 2017 2:22 am
This topic is locked: you cannot edit posts or make replies. Natural ADABAS Opening with CTS enikhilk Mainframe Jobs 0 Wed Nov 30, 2016 5:37 pm
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm


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