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
 

 

Invoke TSO Command from COBOL program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Invoke TSO Command from COBOL program
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    Post subject:
Reply with quote

Sinu
Check this link. It will be helpful.

http://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    Post subject: Output of LISTDS is needed in COBOL WORKING STORAGE
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


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