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

Error in Allocating multiple datasets


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Mon Feb 28, 2011 5:55 pm
Reply with quote

Hi,

I facing an issue while allocating multiple files(10 files) thru following batch jcl. Please help me.

ALLOC DATASET('File2') -
NEW REUSE -
UNIT(SYSDA) RECFM(F) LRECL(4096) BLKSIZE(4096) -
SPACE(10) CYLINDERS -
RETPD(3700)
IKJ56220I FILE SYSTSPRT NOT ALLOCATED, TOO MANY DATA SETS
IKJ56220I MAXIMUM NUMBER OF DATA SET ALLOCATIONS ALLOWED BY YOUR
IKJ56220I SESSION HAS BEEN REACHED, YOU SHOULD FREE UNUSED DATA SETS
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12

My job step is given below.

//STEP01 EXEC PGM=IDCAMS
//SYSIN DD DSN=TEST.LIB1(FILE1),DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//*
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Feb 28, 2011 6:28 pm
Reply with quote

You may want to increase the settings for the maximum allowable number of dynamically allocated datasets:

16.6 DYNAMNBR Parameter.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Mon Feb 28, 2011 8:29 pm
Reply with quote

cvijay784 wrote:
Hi,

I facing an issue while allocating multiple files(10 files) thru following batch jcl. Please help me.

ALLOC DATASET('File2') -
NEW REUSE -
UNIT(SYSDA) RECFM(F) LRECL(4096) BLKSIZE(4096) -
SPACE(10) CYLINDERS -
RETPD(3700)
IKJ56220I FILE SYSTSPRT NOT ALLOCATED, TOO MANY DATA SETS
IKJ56220I MAXIMUM NUMBER OF DATA SET ALLOCATIONS ALLOWED BY YOUR
IKJ56220I SESSION HAS BEEN REACHED, YOU SHOULD FREE UNUSED DATA SETS
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12

My job step is given below.

//STEP01 EXEC PGM=IDCAMS
//SYSIN DD DSN=TEST.LIB1(FILE1),DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//*

The IKJ messages are generated by TSO, not IDCAMS. Show us the real JCL.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Feb 28, 2011 8:46 pm
Reply with quote

the issue has already been discussed
the simple solution is to use a dummy(placeholder) ddname

Code:
 ALLOC FI(<arb_ddname>) DA('<dataset name') -
        DSORG(PS) RECFM(F B) LRECL(80) -
        SPACE(1 1) TRACKS NEW CATALOG REUSE

obviously the other dataset parameters are just for the <quantity> test

tested with 1000 datsets!
Back to top
View user's profile Send private message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Tue Mar 01, 2011 11:45 am
Reply with quote

Hi,

Complete JCL is given below.

//JOBNAME JOB ,'VIJAY',CLASS=A,PRTY=4,
// MSGCLASS=J,NOTIFY=&SYSUID
//*******************************************************
//* STEP01 - IDCAMS COPY STEP
//*******************************************************
//STEP01 EXEC PGM=IDCAMS
//SYSIN DD DSN=TEST.PDSLIB(MEMBER),DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//*

MEMBER parm has following code.

SET MAXCC=0

ALLOC FI(DUMMDD) DA('TEST.PS') -
DSORG(PS) RECFM(F B) LRECL(80) -
SPACE(1 1) TRACKS NEW CATALOG REUSE -
RETPD(3700)

ALLOC FI(DUMMDD) DA('TEST.PS2') -
DSORG(PS) RECFM(F B) LRECL(80) -
SPACE(1 1) TRACKS NEW CATALOG REUSE -
RETPD(3700)

ALLOC FI(DUMMDD) DA('TEST.PS3') -
DSORG(PS) RECFM(F B) LRECL(80) -
SPACE(1 1) TRACKS NEW CATALOG REUSE -
RETPD(3700)

************************************

When using FI dummy dd name, i now get following error. Please help me.


000001 //JOBNAME JOB ,'VIJAY',CLASS=A,PRTY=4,
000002 // MSGCLASS=J,NOTIFY=&SYSUID
000003 //***********************************************************
000004 //* STEP01 - IDCAMS COPY STEP
000005 //***********************************************************
000006 //STEP01 EXEC PGM=IDCAMS
.JAAA //SYSIN DD DSN=TEST.PDSLIB(MEMBER),DISP=SHR
=NOTE= ----+----1----+----2----+----3----+----4----+----5----+----
=NOTE= SET MAXCC=0
=NOTE=
=NOTE= ALLOC FI(DUMMDD) DA('TEST.PS') -
==MSG> ***ERROR - DSS5650E - FI IS NOT VALID FOR THIS COMMAND
=NOTE= DSORG(PS) RECFM(F B) LRECL(80) -
=NOTE= SPACE(1 1) TRACKS NEW CATALOG REUSE -
=NOTE= RETPD(3700)
=NOTE=
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Mar 01, 2011 11:54 am
Reply with quote

before posting I test the statements I provide
if something does not work.. certainly it is not due to something wrong in them

did You try to simply run the jcl?

Quote:
DSS5650E


it is not an idcams message...
get rid of the buggy jcl checker! icon_biggrin.gif

no reason for anybody to waste time talking about such issues
it has been already told zillions times that jcl checkers quite often ( too often really )
give false checks

to get proper help post only on real errors,
as reported in the IBM manuals!
Back to top
View user's profile Send private message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Tue Mar 01, 2011 12:41 pm
Reply with quote

This is a miracle. Job ran successfully and allocated multiple datasets.
A jcl that throws error in jcl checker, never ran successfully in my career.

This is amazing !!! Thanks for all your effort :)
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Mar 01, 2011 12:47 pm
Reply with quote

miracle...
we do not need no steenking miracles! icon_biggrin.gif

Jcl checkers mighy be successful in finding jcl errors

the control card used for service programs and utilities are not part of jcl
and jcl checkers are prone to show for them non existing errors
jcl is has been pretty static for a long time, the big changes will happen in zOS 13
on the other side utilities and service program are much more prone to evolution

the proper approach would be that the checkers would provide an option to check only jcl and not control cards,
but that' s expecting too much from them!
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 Error to read log with rexx CLIST & REXX 11
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Error when install DB2 DB2 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
Search our Forums:

Back to Top