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

IGD17293I jcl error when using LIKE=


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ronald masters

New User


Joined: 09 Dec 2015
Posts: 12
Location: uk

PostPosted: Thu Dec 17, 2015 5:08 pm
Reply with quote

I tried to clone a PDS using the LIKE=dsn parameter on the new PDS.
Here's the result:
Code:

         6 //COPY      EXEC PGM=IEBCOPY
         7 //SYSPRINT  DD SYSOUT=*
         8 //SYSUT1    DD DISP=SHR,DSN=&FROM..R32015.HARP.JOBSJAN
           IEFC653I SUBSTITUTION JCL - DISP=SHR,DSN=COW.R32015.HARP.JOBSJAN
         9 //SYSUT2    DD DISP=(NEW,PASS),
           //             LIKE=&FROM..R32015.HARP.JOBSJAN,
           //             DSN=&TO..R32015.HARP.JOBSJAN
           //*
           IEFC653I SUBSTITUTION JCL - DISP=(NEW,PASS),LIKE=COW.R32015.HARP.JOBSJAN,DSN=SEU.R32015.HARP.JOBSJAN
        10 //
1
 TSS7000I SLPROD LAST-USED 16 DEC 15 00:01 SYSTEM=PROD FACILITY=BATCH
 TSS7001I COUNT=02707 MODE=FAIL LOCKTIME=NONE NAME=LONDON PROD SECJCL
 IEF344I PLSOR02R COPY SYSUT2 - ALLOCATION FAILED DUE TO DATA FACILITY SYSTEM ERROR
 IGD17293I DATA SET SEU.R32015.HARP.JOBSJAN HAS
 PARTITIONED ORGANIZATION AND IS NOT ELIGIBLE
 TO BE A MULTI-VOLUME DATA SET, ALLOCATION FAILED
 IEF272I PLSOR02R COPY - STEP WAS NOT EXECUTED.


I don't get it. Why can't the new PDS be allocated ?
I don't see anything unusual about the model dataset.
Admittedly, I should have coded DISP=(NEW,KEEP) but I don't see how that should make any difference.
Here's the model dataset:
Code:

                             Data Set Information                       
Command ===>                                                           
                                                                       
Data Set Name . . . . : COW.R32015.HARP.JOBSJAN                         
                                                                       
General Data                          Current Allocation               
 Management class . . : P030Y735       Allocated cylinders : 1         
 Storage class  . . . : STD            Allocated extents . : 1         
  Volume serial . . . : S2SD13         Maximum dir. blocks : 150       
  Device type . . . . : 3390                                           
 Data class . . . . . : PDS                                             
  Organization  . . . : PO            Current Utilization               
  Record format . . . : FB             Used cylinders  . . : 1         
  Record length . . . : 80             Used extents  . . . : 1         
  Block size  . . . . : 27920          Used dir. blocks  . : 10         
  1st extent cylinders: 1              Number of members . : 56         
  Secondary cylinders : 5                                               
  Data set name type  : PDS           Dates                             
                                       Creation date . . . : 2015/09/30
                                       Referenced date . . : 2015/12/17
                                       Expiration date . . : ***None***
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7311
Location: Inside the Matrix

PostPosted: Thu Dec 17, 2015 5:50 pm
Reply with quote

Well, there's this:
z/OS 2.1 JCL wrote:

Note: Directory quantity is picked up as part of the space allocation attribute except when the model data set is a PDSE. When you create a PDS, the directory blocks must be specified directly on the JCL by using the SPACE parameter.


Also:

Quote:
The following attributes are copied from the model data set to the new data set:

Data set organization
Record organization (RECORG) or
Record format (RECFM)
Record length (LRECL)
Key length (KEYLEN)
Key offset (KEYOFF)
Type, PDS, PDSE, basic format, extended format, large format, or HFS (DSNTYPE)
Space allocation (AVGREC and SPACE)


Your message refers to Volume count, and there's nothing in that list about volumes at all, so I think you need to add some more stuff explicitly to the DD. The LIKE doesn't just take "everything".
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 696
Location: Whitby, ON, Canada

PostPosted: Thu Dec 17, 2015 6:09 pm
Reply with quote

It may have something to do with how SMS is set up in your shop. I just ran the same JCL and it worked just fine in our environment.

I suggest that you start by adding a UNIT parameter, which might help SMS decide how to allocate the new data set.
Back to top
View user's profile Send private message
ronald masters

New User


Joined: 09 Dec 2015
Posts: 12
Location: uk

PostPosted: Thu Dec 17, 2015 8:54 pm
Reply with quote

Thanks for input. I think I am looking at either a known problem (possibly APAR OA22738 or related), or my installation has something wrong with its ACS routine(s). I have raised a ticket to storage support to see what they make of it.
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 490
Location: London

PostPosted: Tue Dec 22, 2015 4:16 pm
Reply with quote

LIKE does not take Dataclas as one of its model attributes. It looks like your new file is being assigned a Dataclas that has a VOLCOUNT or DYNVOLCNT GT 1. PDS or PDSE cannot be multi-volume. If you include DATACLAS=PDS (which your model file has) as well as LIKE= you'll probably find it works.
Back to top
View user's profile Send private message
ronald masters

New User


Joined: 09 Dec 2015
Posts: 12
Location: uk

PostPosted: Tue Dec 22, 2015 4:20 pm
Reply with quote

This is exactly what my Storage Support people told me to do, late last night.
So I learned something new today. Thanks everybody!
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Secondary index error while loading d... IMS DB/DC 2
No new posts Error 0C1 Reason Code 1 with branch i... PL/I & Assembler 3
No new posts Getting error while xped JCL & VSAM 10
No new posts can someone please help me in finding... IBM Tools 9
No new posts SYNCSORT Error - CONTROL FIELD BEYOND... SYNCSORT 10
Search our Forums:

Back to Top