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

SORT DATA set name unavilable


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amitkoshti
Warnings : 1

New User


Joined: 04 Oct 2006
Posts: 10
Location: Pune

PostPosted: Wed Dec 13, 2006 3:47 pm
Reply with quote

While sorting I am getting following message

FOLLOWING RESERVED DATA SET NAMES UNAVAILABLE TO SORT

What is the reason?
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Dec 13, 2006 3:51 pm
Reply with quote

Hey Amit,

Would u please provide ur jcl?
Back to top
View user's profile Send private message
Rajen

New User


Joined: 05 May 2005
Posts: 61

PostPosted: Wed Dec 13, 2006 3:54 pm
Reply with quote

Please check your DD name which you are giving for SORTING.
It might the case that different DD name would have been required.

As Ekta has mentioned please give us ur JCL so that we have better idea of problem.

Thanks,
Rajen Patel.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Dec 13, 2006 4:00 pm
Reply with quote

What are the "FOLLOWING RESERVED DATA SET NAMES"?
Back to top
View user's profile Send private message
amitkoshti
Warnings : 1

New User


Joined: 04 Oct 2006
Posts: 10
Location: Pune

PostPosted: Wed Dec 13, 2006 5:32 pm
Reply with quote

amitkoshti wrote:
While sorting I am getting following message

FOLLOWING RESERVED DATA SET NAMES UNAVAILABLE TO SORT
DSN=ABC.TEMP
DSN=ABC.JCL.CNTL
What is the reason?


Here is the JCL
Code:

//SORT1    JOB ?ACCT NO?,'ENV D',                 
//          USER=&SYSUID,                           
//          REGION=0M                               
//STEP1 EXEC PGM=SORT                           
/*                                                 
//SYSOUT        DD  SYSOUT=*                             
//SYSPRINT    DD   SYSOUT=*                                                 
//SORTIN         DD   DSN=ABC.TEMP,DISP=SHR           
//SORTWK01  DD   UNIT=SYSDA,SPACE=(CYL,(100,100))   
//SORTWK02  DD   UNIT=SYSDA,SPACE=(CYL,(100,100))   
//SORTWK03  DD   UNIT=SYSDA,SPACE=(CYL,(100,100))   
//SORTOUT     DD    DSN=ABC.JCL.CNTL(SORTOUT),DISP=OLD     
//SYSIN            DD  *                                         
 SORT FIELDS=(1,4,CH,A)                                   
/*
Back to top
View user's profile Send private message
Rajen

New User


Joined: 05 May 2005
Posts: 61

PostPosted: Wed Dec 13, 2006 5:39 pm
Reply with quote

//SORTOUT DD DSN=ABC.JCL.CNTL(SORTOUT),DISP=OLD

Make this as Flat file should be ABC.JCL.CNTL

Remove (SORTOUT) and run the job.

Thanks,
Rajen.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Dec 13, 2006 5:47 pm
Reply with quote

Hi AMit,


Try to use any other member name except SORTOUT.

It should work
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Dec 13, 2006 6:18 pm
Reply with quote

Who is generating that message, there should be message id/error number in front.
Back to top
View user's profile Send private message
h.dinesh

New User


Joined: 06 Dec 2006
Posts: 46
Location: Chennai

PostPosted: Wed Dec 13, 2006 6:47 pm
Reply with quote

Hi Amit,

I tried without giving these

//SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(100,100))
//SORTWK02 DD UNIT=SYSDA,SPACE=(CYL,(100,100))
//SORTWK03 DD UNIT=SYSDA,SPACE=(CYL,(100,100))

and it worked fine.

I tried your JCL and i got the same message which you got. I don't know why above statements are used but when I changed space parameters to exactly how I have for the PDS in which member is to be created, it worked fine. I don't have the explanation for this but would appreciate if someone could do so.

Dinesh icon_rolleyes.gif
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Dec 13, 2006 9:44 pm
Reply with quote

Quote:
While sorting I am getting following message

FOLLOWING RESERVED DATA SET NAMES UNAVAILABLE TO SORT
DSN=ABC.TEMP
DSN=ABC.JCL.CNTL
What is the reason?


Those messages indicate that those data sets were being used exclusively by some other application when you ran the sort job.

Removing the SORTWKs was not the reason it worked fine the next time. What probably happened is that the data sets were released by the time you reran the job.
Back to top
View user's profile Send private message
Rajen

New User


Joined: 05 May 2005
Posts: 61

PostPosted: Thu Dec 14, 2006 1:10 pm
Reply with quote

Hi Frank,
I guess amitkoshti is the one who had this problem and Williams has ran that job.

Amit can you please try rerun the job as Frank has mentioned.
Also please check if you can use different member name (other than SORTOUT).

I guess after resubmitting or chaging the member name it should work fine.

And please let us know if that worked or not so that even we would come to know the solution.


Thanks,
Rajen.
Back to top
View user's profile Send private message
amitkoshti
Warnings : 1

New User


Joined: 04 Oct 2006
Posts: 10
Location: Pune

PostPosted: Thu Dec 14, 2006 8:43 pm
Reply with quote

Hi All,

Thanx for you reply. I executed this job once again and it ran successfully.

I am agree with the Frank that tose messages indicate that those data sets were being used exclusively by some other application when you ran the sort job.

Regards
Amit
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 7
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top