View previous topic :: View next topic |
Author |
Message |
ollo Beginner
Joined: 18 Feb 2005 Posts: 4 Topics: 2
|
Posted: Thu Jul 12, 2007 7:11 am Post subject: LOGON REXX / CLIST |
|
|
Hello,
i want to put the ISPF-Start Rexx to Dataset that is allocated
with SYSEXEC
LOGON EXEC PGM=IKJEFT01,
DYNAMNBR=200,
REGION=0M,
TIME=1440,
PARM='%ISPF'
SYSEXEC DD DISP=SHR,DSN=SYS3.ISPF.REXX
SYSPROC DD DISP=SHR,DSN=SYS3.ISPF.VHVCLIB
In the %ISPF Rexx I want to free the allocation with
FREE FILE(SYSEXEC) and then realloc with
rexxdsn = sysvar(sysuid) !! ".PR.REXX"
"ALLOC DD(SYSEXEC) REUSE SHR DSN('"rexxdsn"'",
" 'SYS3.ISPF.REXX')"
I get the error at the FREE, that the SYSEXEC is already in use.
When i concatinate it in the logon procedure
SYSPROC DD DISP=SHR,DSN=SYS3.ISPF.REXX
DD DISP=SHR,DSN=SYS3.ISPF.VHVCLIB
the free works.
What is my false?
Thx |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Thu Jul 12, 2007 8:09 am Post subject: |
|
|
So you are executing a REXX (found in the SYSEXEC concatenation) that will FREE the concatenation and reallocate it? Perhaps that is the problem. The concatenation has open datasets?
When you run the REXX from SYSPROC there is no problem, correct? _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
 |
ollo Beginner
Joined: 18 Feb 2005 Posts: 4 Topics: 2
|
Posted: Thu Jul 12, 2007 8:24 am Post subject: |
|
|
the %ISPF-REXX is the only Member in the pds.
the different is the DD - name of the allocation
don't work:
SYSEXEC DD DISP=SHR,DSN=SYS3.ISPF.REXX
work:
SYSPROC DD DISP=SHR,DSN=SYS3.ISPF.REXX
I think with SYSEXEC, something make an enqueue on the %ISPF REXX, so that it is in use.
But why is there are no enqueue with SYSPROC |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Thu Jul 12, 2007 3:53 pm Post subject: |
|
|
SYSEXEC is searched before SYSPROC for execs so it may be that SYSEXEC is open because that is where you are running the exec from. You can not free an open ddname. |
|
Back to top |
|
 |
|
|