| View previous topic :: View next topic |
| Author |
Message |
coolguy Beginner

Joined: 01 Dec 2004 Posts: 82 Topics: 28
|
Posted: Tue Sep 20, 2005 6:22 am Post subject: |
|
|
it is wroking fine Thanks for all
Coolguy |
|
| Back to top |
|
 |
Mervyn Moderator

Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Tue Sep 20, 2005 6:31 am Post subject: |
|
|
| 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(...,...)?
 _________________ The day you stop learning the dinosaur becomes extinct |
|
| Back to top |
|
 |
acevedo Beginner

Joined: 03 Dec 2002 Posts: 127 Topics: 0 Location: Europe
|
Posted: Tue Sep 20, 2005 6:51 am Post subject: |
|
|
| 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 |
|
 |
Mervyn Moderator

Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Tue Sep 20, 2005 8:15 am Post subject: |
|
|
| 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 |
|
 |
acevedo Beginner

Joined: 03 Dec 2002 Posts: 127 Topics: 0 Location: Europe
|
Posted: Wed Sep 21, 2005 3:28 am Post subject: |
|
|
Yes and No.
Yes with other programs and No with the one you posted. |
|
| Back to top |
|
 |
coolguy Beginner

Joined: 01 Dec 2004 Posts: 82 Topics: 28
|
Posted: Wed Sep 21, 2005 9:19 am Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12394 Topics: 75 Location: San Jose
|
Posted: Wed Sep 21, 2005 9:48 am Post subject: |
|
|
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
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
| Back to top |
|
 |
coolguy Beginner

Joined: 01 Dec 2004 Posts: 82 Topics: 28
|
Posted: Wed Sep 21, 2005 9:57 am Post subject: |
|
|
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 |
|
 |
Mervyn Moderator

Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Wed Sep 21, 2005 10:28 am Post subject: |
|
|
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 |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Wed Sep 21, 2005 10:56 am Post subject: |
|
|
| 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 |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Thu Sep 22, 2005 12:23 am Post subject: |
|
|
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 |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Thu Sep 22, 2005 1:41 am Post subject: |
|
|
| 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 |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Thu Sep 22, 2005 5:24 am Post subject: |
|
|
Oh Okay. Got it now...
Thanks for the clarification.
Regards,
Phantom |
|
| Back to top |
|
 |
coolguy Beginner

Joined: 01 Dec 2004 Posts: 82 Topics: 28
|
Posted: Thu Sep 22, 2005 6:54 am Post subject: |
|
|
Thanks a lot it is working fine
cool |
|
| Back to top |
|
 |
|
|
|