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 

Running Rexx Thru Jcl
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
coolguy
Beginner


Joined: 01 Dec 2004
Posts: 82
Topics: 28

PostPosted: Tue Sep 20, 2005 6:22 am    Post subject: Reply with quote

it is wroking fine Thanks for all

Coolguy
Back to top
View user's profile Send private message
Mervyn
Moderator


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

PostPosted: Tue Sep 20, 2005 6:31 am    Post subject: Reply with quote

acevedo wrote:
I have almost (without vput) the same program but adding arguments to the main program, I mean, ISPSTART CMD(SASTEST yourlibrary yourmac editview)...


So what happened to PARM(...,...)?

Wink
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
acevedo
Beginner


Joined: 03 Dec 2002
Posts: 127
Topics: 0
Location: Europe

PostPosted: Tue Sep 20, 2005 6:51 am    Post subject: Reply with quote

In my case no parms between call-er and call-ed or do you mean why 'yourlibrary yourmac...' are not in IKJEFT01 PARM?
Back to top
View user's profile Send private message
Mervyn
Moderator


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

PostPosted: Tue Sep 20, 2005 8:15 am    Post subject: Reply with quote

acevedo wrote:
Mervyn wrote:
I think PARM is only used when starting with a PGM.

Try this:

ISPSTART CMD(SASTEST PROC PGM)

Cheers,
Merv


I use it this way without problems.

If I'm not wrong the error you've shown has nothing to do with passing parameters...


But you didn't do it this way, did you?
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
acevedo
Beginner


Joined: 03 Dec 2002
Posts: 127
Topics: 0
Location: Europe

PostPosted: Wed Sep 21, 2005 3:28 am    Post subject: Reply with quote

Yes and No.

Yes with other programs and No with the one you posted.
Back to top
View user's profile Send private message
coolguy
Beginner


Joined: 01 Dec 2004
Posts: 82
Topics: 28

PostPosted: Wed Sep 21, 2005 9:19 am    Post subject: Reply with quote

I running the rexx thru below Jcl here i want to pass sysboic parmeters to rexx

Like rexxname macname are pasing as Parms i want to the parms thru symbolic parameters is it possble ? Plas help me in that

//EDITMAC EXEC PGM=IKJEFT01
//SYSEXEC DD DSN=yourid.REXX.TEST,DISP=SHR
//ISPPROF DD DSN=yourid.COPY.ISPPROF,DISP=SHR
//ISPPLIB DD DISP=SHR,DSN=SYS1.SISPPENU
//ISPMLIB DD DISP=SHR,DSN=SYS1.SISPMENU
//ISPSLIB DD DISP=SHR,DSN=SYS1.SISPSENU
//ISPTLIB DD DISP=SHR,DSN=SYS1.SISPTENU
//ISPLOG DD SYSOUT=*,DCB=(LRECL=125,RECFM=VBA)
//SYSTSPRT DD SYSOUT=*,DCB=LRECL=125
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD *
ISPSTART CMD(SASTEST REXXNAME MACNAME)
//*


Thanks
Cool
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Sep 21, 2005 9:48 am    Post subject: Reply with quote

coolguy,

Why are you repeating the same question over and over? You got an answer to pass symbolic parms in the other thread. Use the method posted in the other thread by making systsin as dummy

Code:

//SYSTSIN  DD DUMMY   


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


Joined: 01 Dec 2004
Posts: 82
Topics: 28

PostPosted: Wed Sep 21, 2005 9:57 am    Post subject: Reply with quote

sorry for the confusion kolusu still ia m geting the errors

My Jcl is
//EDITMAC EXEC PGM=IKJEFT01,PARM='%LASTREXX &CYCLE &CY'
//SYSEXEC DD DSN=MY.REXX.PGMS,DISP=SHR
//ISPPROF DD DSN=&&ISPPROF,DISP=(,PASS),
// UNIT=SYSDA,SPACE=(CYL,(1,1,10),RLSE),
// RECFM=FB,LRECL=80
//ISPPLIB DD DISP=SHR,DSN=SYS1.ISPPLIB
//ISPMLIB DD DISP=SHR,DSN=SYS1.ISPMLIB
//ISPSLIB DD DISP=SHR,DSN=SYS1.ISPSLIB
//ISPTLIB DD DISP=SHR,DSN=SYS1.ISPTLIB
//ISPLOG DD SYSOUT=*,DCB=(LRECL=125,RECFM=VBA)
//SYSTSPRT DD SYSOUT=*,DCB=LRECL=125
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD DUMMY
/*
but i am geting the error msg in

SYSTSPRT

8 *-* "VPUT (ABC XYZ) SHARED"
+++ RC(-3) +++
9 *-* "EDIT DATASET('"PDS"') MACRO("MAC")"
+++ RC(-3) +++


pls help in that sorry to troule you a lot

thanks
cool
Back to top
View user's profile Send private message
Mervyn
Moderator


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

PostPosted: Wed Sep 21, 2005 10:28 am    Post subject: Reply with quote

Coolguy,

Going back to my original solution, and modifying slightly;


The JCL:

Code:

//EDITMAC  EXEC PGM=IKJEFT01,PARM='%SASTEST REXXNAME MACNAME'       
//SYSEXEC  DD   DSN=yourid.REXX.TEST,DISP=SHR                       
//ISPPROF  DD   DSN=yourid.COPY.ISPPROF,DISP=SHR                   
//ISPPLIB  DD   DISP=SHR,DSN=SYS1.SISPPENU                         
//ISPMLIB  DD   DISP=SHR,DSN=SYS1.SISPMENU                         
//ISPSLIB  DD   DISP=SHR,DSN=SYS1.SISPSENU                         
//ISPTLIB  DD   DISP=SHR,DSN=SYS1.SISPTENU                         
//ISPLOG   DD   SYSOUT=*,DCB=(LRECL=125,RECFM=VBA)                 
//SYSTSPRT DD   SYSOUT=*,DCB=LRECL=125                             
//SYSPRINT DD   SYSOUT=*                                           
//SYSTSIN  DD   DUMMY                                               
//*                                                                 



The SASTEST Rexx exec:

[code:1:fa756163f9]
/* REXX */

arg abc xyz

if sysvar(sysispf)
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
semigeezer
Supermod


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

PostPosted: Wed Sep 21, 2005 10:56 am    Post subject: Reply with quote

You need to start ISPF and have it start your command. That means that you need to use ISPSTART CMD(%SASTEST REXXNAME MACNAME). I've never seen it done this way because it is common to do a few things before calling ISPF like PROFILE PREFIX(...) but it should work from the PARM= if there is no setup required.
Back to top
View user's profile Send private message Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Sep 22, 2005 12:23 am    Post subject: Reply with quote

Semigeezer,

Code:

but it should work from the PARM= if there is no setup required.


I am not sure if I interpreted this statement correctly. Do you mean to say that even if the rexx has some references to ISPF services like VGET, VPUT or EDIT/VIEW Datasets, it could be invoked directly without using ISPSTART ?

Thanks,
Phantom
Back to top
View user's profile Send private message
semigeezer
Supermod


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

PostPosted: Thu Sep 22, 2005 1:41 am    Post subject: Reply with quote

No. you are using the EXEC card's PARM='...' instead of SYSTSIN to pass an initial command to TSO. I'm saying that either way should work as long as everything you need to do can be done in one command. But that command must either be ISPSTART, or an exec or CLIST that invokes ISPSTART.
Back to top
View user's profile Send private message Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Sep 22, 2005 5:24 am    Post subject: Reply with quote

Oh Okay. Got it now...

Thanks for the clarification.

Regards,
Phantom
Back to top
View user's profile Send private message
coolguy
Beginner


Joined: 01 Dec 2004
Posts: 82
Topics: 28

PostPosted: Thu Sep 22, 2005 6:54 am    Post subject: Reply with quote

Thanks a lot it is working fine

cool
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 -> TSO and ISPF All times are GMT - 5 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
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