IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Job is in hold even Free command is executing


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Tue Dec 02, 2008 11:41 am
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Dec 02, 2008 2:54 pm
Reply with quote

any reason you are allocating the ds?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Dec 02, 2008 3:29 pm
Reply with quote

After the job has been submitted, JES is responsible for its execution. Your FREE command is TSO's.

O.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Dec 02, 2008 10:07 pm
Reply with quote

Your JCL should have DISP=SHR, as should your allocations in SYSPROC or SYSEXEC.
Back to top
View user's profile Send private message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Wed Dec 03, 2008 1:19 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Dec 03, 2008 10:21 pm
Reply with quote

Quote:
also DS is assigned dynamcally to sysexec


Use ISRDDN and find your dataset. What does ISRDDN show for that line?
Back to top
View user's profile Send private message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Mon Dec 08, 2008 6:29 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Mon Dec 08, 2008 10:09 pm
Reply with quote

Again:
Use ISRDDN and find your dataset. What does ISRDDN show for that line?
Back to top
View user's profile Send private message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Mon Dec 08, 2008 10:27 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Dec 09, 2008 12:00 am
Reply with quote

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
View user's profile Send private message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Tue Dec 09, 2008 3:10 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Dec 10, 2008 2:54 am
Reply with quote

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
View user's profile Send private message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Wed Dec 10, 2008 1:40 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Dec 11, 2008 2:24 am
Reply with quote

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
View user's profile Send private message
sparrow

New User


Joined: 26 Mar 2007
Posts: 57
Location: Pune

PostPosted: Thu Dec 11, 2008 3:00 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top