Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Job is in hold even Free command is executing

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Job is in hold even Free command is executing
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    Post subject:
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: 2360
Location: Israel

PostPosted: Tue Dec 02, 2008 3:29 pm    Post subject:
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

Senior Member


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

PostPosted: Tue Dec 02, 2008 10:07 pm    Post subject: Reply to: Job is in hold even Free command is executing
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    Post subject: Reply to: Job is in hold even Free command is executing
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

Senior Member


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

PostPosted: Wed Dec 03, 2008 10:21 pm    Post subject: Reply to: Job is in hold even Free command is executing
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    Post subject: Re: Job is in hold even Free command is executing
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

Senior Member


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

PostPosted: Mon Dec 08, 2008 10:09 pm    Post subject: Reply to: Job is in hold even Free command is executing
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    Post subject:
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

Senior Member


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

PostPosted: Tue Dec 09, 2008 12:00 am    Post subject: Reply to: Job is in hold even Free command is executing
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    Post subject:
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

Senior Member


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

PostPosted: Wed Dec 10, 2008 2:54 am    Post subject: Reply to: Job is in hold even Free command is executing
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    Post subject:
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

Senior Member


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

PostPosted: Thu Dec 11, 2008 2:24 am    Post subject: Reply to: Job is in hold even Free command is executing
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us