MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

execute cobol online from rexx

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
dbalaji
Beginner


Joined: 03 Dec 2002
Posts: 4
Topics: 2
Location: chennai

PostPosted: Tue Dec 31, 2002 3:01 am    Post subject: execute cobol online from rexx Reply with quote

hi,
I have a cobol load module which does not use any files, just a parm value will be passed from JCL. In my rexx i want to pass the parm
to this cobol module, but instead of executing the cobol pgm in batch, i want to execute the cobol module online. how can it do it.
Iam new to REXX.
Please help Confused

thanks,
balaji
_________________
"EVEN SKY IS NOT THE LIMIT"
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Premkumar
Moderator


Joined: 28 Nov 2002
Posts: 77
Topics: 7
Location: Chennai, India

PostPosted: Tue Dec 31, 2002 4:19 am    Post subject: Reply with quote

Code:

Address TSO "Call 'YOUR.LOAD.LIB(COBPGM)' 'PARM'"
Back to top
View user's profile Send private message Send e-mail
dbalaji
Beginner


Joined: 03 Dec 2002
Posts: 4
Topics: 2
Location: chennai

PostPosted: Thu Jan 02, 2003 1:51 am    Post subject: Reply with quote

Hi,
Thanks for the information.
can u Please tell me how can i compile and link edit a cobol program online in rexx.
Do i have to use CALL IGYCRCTL and HEWL or is there any simpler way
of doing it.?

thanks,
balaji
_________________
"EVEN SKY IS NOT THE LIMIT"
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Premkumar
Moderator


Joined: 28 Nov 2002
Posts: 77
Topics: 7
Location: Chennai, India

PostPosted: Thu Jan 02, 2003 5:47 am    Post subject: Reply with quote

Balaji,

I would advice you to use a skeleton jcl and submit a batch compile job from the rexx function. For more on skeleton and File Tailoring refer the following links.
Introduction to ISPF Skeletons and Tables
Description of the ISPF Services

Hope this helps.
Back to top
View user's profile Send private message Send e-mail
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Thu Jan 02, 2003 5:49 pm    Post subject: Reply with quote

Balaji,

ISPF Option 4 is usually set up to allow foreground compilation and linking of Cobol and other languages. You shouldn't need to change too many parameters.

Cheers,
Merv
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Fri Jun 20, 2003 4:20 am    Post subject: Reply with quote

Hi,

I have a cobol program which just have few display and accept statements, no linkage parameters.

I compiled and linked it using regular batch cobol jcl.

I executed it using - TSO CALL 'loadlibdsn(pgm)'

The display came fine but abended at accept statement with following message-
Quote:
IGZ0017S The open of DISPLAY or ACCEPT file with environment name SYSIN was unsuccessful.

Do I have to do something regarding SYSIN (or something else)?

Regards,
Dibakar.
Back to top
View user's profile Send private message Send e-mail
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Fri Jun 20, 2003 4:34 am    Post subject: Reply with quote

I gave "TSO ALLOC FILE(SYSIN) DATASET(*)" and its working fine.

Dibakar.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group