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
 

 

IGD17293I jcl error when using LIKE=

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: IGD17293I jcl error when using LIKE=
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7228

PostPosted: Thu Dec 17, 2015 5:50 pm    Post subject: Reply to: IGD17293I jcl error when using LIKE=
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: 641
Location: Whitby, ON, Canada

PostPosted: Thu Dec 17, 2015 6:09 pm    Post subject:
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    Post subject:
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: 437
Location: London

PostPosted: Tue Dec 22, 2015 4:16 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm
No new posts IDMS/DC-COBOL program - SNAP error wh... rakeshsekar1987 IDMS/ADSO 5 Tue Sep 13, 2016 8:28 pm


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