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 

calling rexx that user TSO commands thru cobol

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Wed Jul 26, 2006 5:28 pm    Post subject: calling rexx that user TSO commands thru cobol Reply with quote

I have a requirement of creating files dynamically in a Cobol program. I can write a rexx programs that create a file dynamically.
I can
_________________
Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Wed Jul 26, 2006 5:43 pm    Post subject: Reply with quote

Sarangadhar,

Please SEARCH before posting . Check these links

http://mvsforums.com/helpboards/viewtopic.php?t=4572&highlight=bpx

http://mvsforums.com/helpboards/viewtopic.php?t=4494&highlight=bpx

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Wed Jul 26, 2006 5:51 pm    Post subject: Reply with quote

Guess we need to include the library SYS1.LINKLIB for this utility 'BPXWDYN'.
I do not ahve access to SYS1.LINKLIB. So am trying in a different way.

Also I may need to call some more rexx programs thru cobol or JCL that use tso/ispf fuctions in future. SO. i would like to know about this..
_________________
Thanks
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed Jul 26, 2006 9:52 pm    Post subject: Reply with quote

If you are running your progrm in batch (as opposed to CICS),Run TSO in bactch and invoke your program from there (TSO is IKJEFT01 or one of its several flavors)... If you need ISPF services also, run ISPF in batch and invoke your program from within ISPF. Search for BATCHPDF for an easy way to create the JCL to do this.
Back to top
View user's profile Send private message Visit poster's website
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Thu Jul 27, 2006 12:17 pm    Post subject: Reply with quote

yes, using IKJEFT by giving all ISP* profile datasets, we can run a rexx program in batch..

my requirement is: need to invoke REXX from cobol.. So can i use the same JCL to invoke the cobol program that in turn invokes REXX?
_________________
Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Thu Jul 27, 2006 1:22 pm    Post subject: Reply with quote

Sarangadhar,

Fyi you can invoke the COBOL pgm via IKJEFT* just like a cobol DB2 pgm.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Thu Jul 27, 2006 2:57 pm    Post subject: Reply with quote

Kolusu,
I din't try normal cobol ealrier using IKJEFT, now i ran once, below is the jcl:
//S03 EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSABOUT DD SYSOUT=*
//SYSDBOUT DD SYSOUT=*
//SYSTSIN DD *
RUN PROGRAM(DYNALOC) -
LIB('TSUAWWY.RK.LOAD')
//*

i got below error:
READY
RUN PROGRAM(DYNALOC) LIB('TSUAWWY.RK.LOAD')
MISSING DATA SET TYPE+
MISSING ASM,FORT,COBOL,BASIC,IPLI,GOFORT,PLI,VSBASIC
READY
END

May be my JCL was wrong. can u give correct JCL.
_________________
Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming 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