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

Invoke TSO Command from COBOL program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sinusam

New User


Joined: 06 Jan 2004
Posts: 18

PostPosted: Tue May 03, 2005 10:26 am
Reply with quote

Invoke TSO Command from COBOL program

I want to get the output of LISTDS (a given dsn) command in my COBOL program.

I tried to invoke the TSO Command from the IKJEFTSR (TSOLNK) Service Routine. But I get return code 20 (authorized program). How to get rid of it ?

Is there any other method to run a TSO command from a COBOL program and get the output in the WORKING STORAGE SECTION ?


Regards,
Sinu
Back to top
View user's profile Send private message
somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Tue May 03, 2005 9:28 pm
Reply with quote

Sinu
Check this link. It will be helpful.

mywebpages.comcast.net/gsf/tools/cob2tso.txt


Regds
-Som
Back to top
View user's profile Send private message
sinusam

New User


Joined: 06 Jan 2004
Posts: 18

PostPosted: Wed May 04, 2005 2:19 pm
Reply with quote

Dear Somu,

I tried to run that program. It was invoking
"TSO ALLOCATE" command. It was successul. But when I changed the command to "LISTDS", I'm getting the previous error.

In the TSO/E Programming Services (IKJ4B740) manual, there was an example for IKJEFTSR which is invoking
LISTBC command. But it is also returning RC=20.

Can you please figure out the problem ?

Regards,
Sinu
Back to top
View user's profile Send private message
somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Wed May 04, 2005 10:37 pm
Reply with quote

Sinu
I didn't get time to check this progrm . But please note that we can't invoke TSO COMMANDS WHICH REQUIRE AUTHORIZATION using this service facility. So I guess that can be a cause for getting this error.

Regds
-Som
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top