Hi..,
i just tried to know the Hostid of my mainframe ..so i used following rexx syntax...
/*rexx*/
parse value socket("Gethostid") with s_rc
say 'the Hostid is' s_rc [/b]
Am getting following ERROR:
2005 ESUBTASKNOTACTIVE Subtask not active
Can any one help me....with proper syntax...
Rexx to know the Hostid of my mainframe
-
- Posts: 66
- Joined: Mon Oct 20, 2008 7:54 pm
- Skillset: REXX,JCL,RACF
- Referer: Google
- Location: Bangalore-India
- Contact:
Rexx to know the Hostid of my mainframe
Parthiban jayaraman
mainframe rexxer,
Banglore
mainframe rexxer,
Banglore
- MrSpock
- Global moderator
- Posts: 809
- Joined: Wed Jun 06, 2007 9:37 pm
- Skillset: REXX, JCL, DFSORT, Syncsort, Axway MFT, Connect:Direct, FTP, SFTP
- Referer: ibmmainframes.com
- Location: Raleigh NC USA
- Contact:
Re: rexx
Where'd you initialize the socket?
My code looks like this:
My code looks like this:
Code: Select all
/* REXX */
Call Initiate_TCPIP_Services
Call Who_Am_I
Exit 0
Initiate_TCPIP_Services:
/* Initiate the Socket services */
returned_data = Socket('Initialize',Time(S))
Parse Var returned_data s_rc s_subtask s_maxdesc s_servicename
If s_rc = 0 Then Say s_servicename':'s_subtask' Initiated 's_maxdesc 'Sockets'
Return
Who_Am_I:
/* Find IP address of machine */
returned_data = Socket('GetHostId')
Parse Var returned_data s_rc s_results
Do While Length(s_results) > 0
Parse Var s_results ip_address s_results
Say 'My HOSTID(s) is/are 'ip_address
End
Return
-
- Posts: 66
- Joined: Mon Oct 20, 2008 7:54 pm
- Skillset: REXX,JCL,RACF
- Referer: Google
- Location: Bangalore-India
- Contact:
Re: Rexx to know the Hostid of my mainframe
Hi..mrspock,
i tried your rexx example...Still i am getting error like this.......
Is there any problem in my server..or...anything else to do...pls guide me...
ERROR:
My HOSTID(s) is/are ESUBTASKNOTACTIVE
My HOSTID(s) is/are Subtask
My HOSTID(s) is/are not
***
i tried your rexx example...Still i am getting error like this.......
Is there any problem in my server..or...anything else to do...pls guide me...
ERROR:
My HOSTID(s) is/are ESUBTASKNOTACTIVE
My HOSTID(s) is/are Subtask
My HOSTID(s) is/are not
***
Parthiban jayaraman
mainframe rexxer,
Banglore
mainframe rexxer,
Banglore
- MrSpock
- Global moderator
- Posts: 809
- Joined: Wed Jun 06, 2007 9:37 pm
- Skillset: REXX, JCL, DFSORT, Syncsort, Axway MFT, Connect:Direct, FTP, SFTP
- Referer: ibmmainframes.com
- Location: Raleigh NC USA
- Contact:
Re: Rexx to know the Hostid of my mainframe
Maybe a similar topic here might help?
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1
- 3622
-
by jibanes
View the latest post
Sun Dec 06, 2020 1:41 am
-
-
Copying All Data Off An Old Mainframe
by zunebuggy » Wed Sep 25, 2024 1:10 am » in Mainframe Security - 0
- 1621
-
by zunebuggy
View the latest post
Wed Sep 25, 2024 1:10 am
-
-
- 2
- 2506
-
by brown7
View the latest post
Sun Nov 07, 2021 1:11 pm
-
- 0
- 1652
-
by aarvalar1
View the latest post
Mon Sep 09, 2024 7:21 pm
-
-
transferring file from pc to mainframe pds member
by valeca » Wed Sep 28, 2022 3:42 am » in TSO & ISPF - 5
- 3390
-
by Pedro
View the latest post
Thu Sep 29, 2022 12:11 am
-