View previous topic :: View next topic
|
Author |
Message |
nkothako
Active User
Joined: 26 Nov 2008 Posts: 125 Location: chennai
|
|
|
|
Code: |
MYDSN = "'PXXXXXA.NAG.SYSPROC(JCLAFC)'"
ADDRESS TSO "ALLOC DD(AFCDAT1) DA("MYDSN") SHR REUSE"
ADDRESS TSO "SUB 'PXXXXA.NAG.SYSPROC(JCLAFC)'"
ADDRESS TSO "FREE DDNAME(AFCDAT1)" |
Even Free command is issue but the jobs are in hold in spool, when i comeout from rexx exec from pds the jobs were completing. note my rexx exec and submitted jobs are in same pds. Is it necessary to comeout every time or any other solution to resolve this problem |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
any reason you are allocating the ds? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
After the job has been submitted, JES is responsible for its execution. Your FREE command is TSO's.
O. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Your JCL should have DISP=SHR, as should your allocations in SYSPROC or SYSEXEC. |
|
Back to top |
|
|
nkothako
Active User
Joined: 26 Nov 2008 Posts: 125 Location: chennai
|
|
|
|
Quote: |
any reason you are allocating the ds? |
even tried to submit the jobs without allocate & free commands but it still facing the same problem
Quote: |
Your JCL should have DISP=SHR, as should your allocations in SYSPROC or SYSEXEC. |
yes, used disp=shr and also DS is assigned dynamcally to sysexec
still asking to free the dataset and going to hold
tried to submit the jobs with QUEUE method by allocating temporary dataset and free option but the result is same like above |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
also DS is assigned dynamcally to sysexec |
Use ISRDDN and find your dataset. What does ISRDDN show for that line? |
|
Back to top |
|
|
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
nkothako wrote: |
Code: |
MYDSN = "'PXXXXXA.NAG.SYSPROC(JCLAFC)'"
ADDRESS TSO "ALLOC DD(AFCDAT1) DA("MYDSN") SHR REUSE"
ADDRESS TSO "SUB 'PXXXXA.NAG.SYSPROC(JCLAFC)'"
ADDRESS TSO "FREE DDNAME(AFCDAT1)" |
Even Free command is issue but the jobs are in hold in spool, when i comeout from rexx exec from pds the jobs were completing. note my rexx exec and submitted jobs are in same pds. Is it necessary to comeout every time or any other solution to resolve this problem |
Hi nkothako,
did you find a solution for this ?
I am facing the same problem...
please share with me if you could find why the jobs are not running ...
Thanks in advance |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Again:
Use ISRDDN and find your dataset. What does ISRDDN show for that line? |
|
Back to top |
|
|
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
Pedro,
I am not that I can raise my problem in others thread..
I could not understand the ISRDDN output.
here is the DD name "ISP10385" infront of the Datset.
SHR,KEEP > ISP10385 MYUID.SAMPLE.EXEC
Please tell what does mean ? I am reading ISRDDN manual..still didnt reach this kind of explanations.
Thanks in adavance |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
That tells me that your TSO id does not need exclusive use of the dataset and can share with the batch job.
What does your JCL dd statement have to DISP= ?? |
|
Back to top |
|
|
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
Hi Pedro,
I am doing a copy in the JCL using a PROC
here is the JCL step
//COPYI EXEC COPY,
// INP=MYUID.EXECJCL, <=== Input
// OUT=MYUID.PREP <=== Output
//**
and the PROC is
//COPY PROC
//************************************
//STEP010 EXEC PGM=IEBCOPY
//SYSUT1 DD DSN=&INP,DISP=SHR
//SYSUT2 DD DSN=&OUT,
// DISP=(NEW,CATLG,CATLG),
// DSNTYPE=PDS,
// SPACE=(CYL,(500,500,1000)),
// LIKE=&INP
The PROC contains DISP = SHR and the Input Dataset is the one which is on hold by my userid when the JOB is running..
and JOBs are on hold. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Your examples are not consistent:
Quote: |
SHR,KEEP > ISP10385 MYUID.SAMPLE.EXEC
// INP=MYUID.EXECJCL, <=== Input
|
Do you really have JCL mixed in with rexx programs?
Can you show us the error message you get? |
|
Back to top |
|
|
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
my mistake, both the datasets names are manipulated and means the same, sorry is I have confused you.
The problem remains the same..here is the error message.
" Following reserved dataset is unavailable for the JOB "
" MYUID.EXECJCL (MYUID.SAMPLE.EXEC) is being used by MYUID on the LPAR ( LPAR name ) "
While the JOBs are on HOLD, I have tried the opening the dataset in 3.4 in EDIT mode, I could able to open it, It doesnot say that I am using the dataset already.
I have closed the ISPF session and opened a new session, the dataset got released and the JOBs started running. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Is there a message number?
I am starting to feel that is not a standard message. Perhaps your software is not checking correctly. |
|
Back to top |
|
|
sparrow
New User
Joined: 26 Mar 2007 Posts: 57 Location: Pune
|
|
|
|
yes, here are the message numbers
IEF861I FOLLOWING RESERVED DATA SET NAMES UNAVAILABLE TO SAMPLE <== JOB name
IEF863I DSN = MYUID.SAMPLE.EXEC SAMPLE RC = 04
ATT863I DSN = MYUID.SAMPLE.EXEC MYUID is using the data set on system WN11 <=== LPAR name )
IEF099I JOB CA05IJCP WAITING FOR DATA SETS
As I told you earlier , the I tried opening this dataset on 3.4 option in EDIT mode, It doesnot say any error that I am using this Dataset already. |
|
Back to top |
|
|
|