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
 

 

Execute TSO command NETSTAT in batch mode

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
santosh.ambaprasad

New User


Joined: 08 Mar 2009
Posts: 16
Location: London

PostPosted: Thu Jul 16, 2009 2:44 am    Post subject: Execute TSO command NETSTAT in batch mode
Reply with quote

Hi

I wrote a REXX that executes NETSTAT command.

When I execute that REXX from command line(Online) the NETSTAT command executed successfully( I got the report)

But I executed the same REXX in batch mode ( using IKJEFT01) I got error message saying.." Unable to establisg affity with TCP/IP"

Is it possible to execute NETSTAT in batch mode?

My REXX:

Code:
/** REXX**/
ADDRESS TSO
"NETSTAT BYTE REPORT DSN 'Gvvv.bbb' (ipadrr 10.231.45.56)"


Thanks
Santosh
Back to top
View user's profile Send private message

Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2051
Location: Silicon Valley

PostPosted: Thu Jul 16, 2009 3:02 am    Post subject: Reply to: Execute TSO command NETSTAT in batch mode
Reply with quote

Perhaps your TCP/IP commands are not in linklist. Find out what dataset they are in and it to your batch STEPLIB.
Back to top
View user's profile Send private message
santosh.ambaprasad

New User


Joined: 08 Mar 2009
Posts: 16
Location: London

PostPosted: Thu Jul 16, 2009 3:09 am    Post subject: Reply to: Execute TSO command NETSTAT in batch mode
Reply with quote

Ok thank You.

Is the link List dataset starts with TCP.*.*?

Thanks
Santosh S
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Thu Jul 16, 2009 3:17 am    Post subject:
Reply with quote

There will be a data set that ends in SEZALOAD, probably starting with TCP or perhaps TCPIP or even SYS?. That will be the data set to put in the STEPLIB for your job.

The actual link list data sets are stored in a system parameter library that is read during the IPL.
Back to top
View user's profile Send private message
santosh.ambaprasad

New User


Joined: 08 Mar 2009
Posts: 16
Location: London

PostPosted: Sat Jul 18, 2009 4:30 pm    Post subject: Reply to: Execute TSO command NETSTAT in batch mode
Reply with quote

OK.It is working now..

I changed my JCL to include SYSTCDP data set.

i did TSO ISRDDN then picked up the stack dataset against this ddname and included it in JCL

Thanks for the support

Santosh S
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: Sun Jul 19, 2009 3:25 am    Post subject: Reply to: Execute TSO command NETSTAT in batch mode
Reply with quote

Good to hear it is working - thanks for letting us know icon_smile.gif

d
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts Batch job tuning sgandhla Testing & Performance analysis 5 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm


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