View previous topic :: View next topic |
Author |
Message |
Sarangadhar Beginner
Joined: 14 Oct 2004 Posts: 130 Topics: 43 Location: virtual village
|
Posted: Wed Jul 26, 2006 5:28 pm Post subject: calling rexx that user TSO commands thru cobol |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
Sarangadhar Beginner
Joined: 14 Oct 2004 Posts: 130 Topics: 43 Location: virtual village
|
Posted: Wed Jul 26, 2006 5:51 pm Post subject: |
|
|
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 |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Wed Jul 26, 2006 9:52 pm Post subject: |
|
|
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 |
|
 |
Sarangadhar Beginner
Joined: 14 Oct 2004 Posts: 130 Topics: 43 Location: virtual village
|
Posted: Thu Jul 27, 2006 12:17 pm Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Thu Jul 27, 2006 1:22 pm Post subject: |
|
|
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 |
|
 |
Sarangadhar Beginner
Joined: 14 Oct 2004 Posts: 130 Topics: 43 Location: virtual village
|
Posted: Thu Jul 27, 2006 2:57 pm Post subject: |
|
|
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 |
|
 |
|
|