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
 

 

SORT DATA set name unavilable

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: SORT DATA set name unavilable
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: 1187
Location: Bangalore,India

PostPosted: Wed Dec 13, 2006 3:51 pm    Post subject:
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    Post subject: Re: SORT DATA set name unavilable
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: 3158
Location: Tucson AZ

PostPosted: Wed Dec 13, 2006 4:00 pm    Post subject: Re: SORT DATA set name unavilable
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    Post subject: Re: SORT DATA set name unavilable
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    Post subject: Re: SORT DATA set name unavilable
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: 1187
Location: Bangalore,India

PostPosted: Wed Dec 13, 2006 5:47 pm    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Wed Dec 13, 2006 6:18 pm    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Wed Dec 13, 2006 9:44 pm    Post subject:
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    Post subject: Re: SORT DATA set name unavilable
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    Post subject: Re: SORT DATA set name unavilable
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am


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