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

Execute TSO command NETSTAT in batch mode


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Thu Jul 16, 2009 3:02 am
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
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Jul 16, 2009 3:17 am
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
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

Moderator Emeritus


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

PostPosted: Sun Jul 19, 2009 3:25 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts HILITE on Browse mode? TSO/ISPF 2
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top