Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I run a Rexx Program from within a batch job?

Status
Not open for further replies.

LeeWebb

Technical User
Jan 19, 2007
2
GB
Hi,

I've written programs and macros in rexx years ago, but I've become a bit rusty since then. I'm kinda having to relearn it.

Our system is a mainframe z/vm system running vse/esa. What I would like to do is to run a rexx macro/prog from within a batch job. I went to the IBM website and found some stuff that suggested that it's possible but couldn't find the details of how.

For instance, I found a ready made script called CICSFILE that can open or close a dataset file. The files are there to download but it says I need to catalog the proc file. How do I do that? I know nothing about systems admin really as I'm merely an operator who is just keen on programming/making my life easier!!

What do you think?

Cheers

Lee
 
'Batch job' and 'z/VM' seem so... mutually exclusive. The whole nature of VM is that it's you and the machine alone in the universe. Everything is interactive and real-time.

When I hear 'batch', I think of JCL, which implies MVS (z/OS). The program which is the 'TSO Foreground Monitor' is called IKJEFT01.

Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Ok, when I say batch job I mean a jcl, running in vse/esa, under vm. Sorry to confuse, I don't know all the terminology.

Thanks
 
Code:
//BLAH     JOB (&SYSUID),'Joe User',NOTIFY=&SYSUID,
//         CLASS=A,REGION=0M,MSGLEVEL=(1,1),
//         MSGCLASS=X TYPRUN=SCAN
//**********************************************************************
//BLAH      EXEC  PGM=IKJEFT01
//STEPLIB   DD    DSN=[i]<some library>[/i],DISP=SHR
//SYSTSPRT  DD    SYSOUT=*
//SYSTSIN   DD    *
   EXEC [i]<your dataset>[/i].CLIST([i]<member>[/i]) '[i]parameters[/i]'
 
I'm (also) an MVS person, however on IBM's z/VSE site they have a REXX/VSE Introduction pdf which mentions:

// EXEC REXX=yourrexx

Where yourrexx should reside in a VSE library as a member type PROC.

You may want to go to REXXLA also to see what's there.

Good Luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top