View previous topic :: View next topic
|
Author |
Message |
swathiravichandran
New User
Joined: 21 Jul 2008 Posts: 19 Location: Mumbai
|
|
|
|
This is my JCL step :
Code: |
//KEYPAIRS DD &KPXOAN.DSN=PMSR1.AS.TEST.TEMP.F01,
// DISP=SHR |
my file is of record length 31
If I am declaring in the above way i am getting SOC4 abend
If i am declaring in the below way it is throwing JCL error as
Code: |
VOLUME SELECTION HAS FAILED FOR INSUFFICIENT SPACE FOR
DATA SET PMSR1.AS.TEST.TEMP.F01
//KEYPAIRS DD &KPXOAN.DSN=PMSR1.AS.TEST.TEMP.F01,
// DISP=SHR
// DISP=(,CATLG,DELETE),
// DCB=(LRECL=31,RECFM=FB,BLKSIZE=0),
// UNIT=SYSDA,SPACE=(CYL,(100,10),RLSE) |
Please help me in solving the issue |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
What language are you using?
What is the precise error message -- copy using BBCode from the job?
Post the messages around the error message as well.
I do not understand the relevance of the JCL error -- the first way you're saying the file already exists, the second way you're allocating a brand new, not existing file. So why show us both of these? They're not both relevant and neither one may have any relationship to your S0C4 (then again, they could -- you didn't give enough information to know for sure). |
|
Back to top |
|
|
swathiravichandran
New User
Joined: 21 Jul 2008 Posts: 19 Location: Mumbai
|
|
|
|
I am using Assembler language..
while trying to create a new file it is throwing me jcl error,as error space
if i have allocated by using 3.2 utility, file is of same length it is throwing me SOC4 error. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
It is not at all clear what your problem really is here.
I have never seen a S0C4 been caused by lack of space before. But for your file allocation, you are trying to allocate more space than is available so you need either to reduce your allocation, or talk to the storage people and tell them there is a problem with availability. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
As I said earlier, post some actual data from your job ... what you are telling us doesn't make sense in the context of the error. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
What is this suppose to be "&KPXOAN.DSN="? |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
swathiravichandran wrote: |
If i am declaring in the below way it is throwing JCL error as
Code: |
VOLUME SELECTION HAS FAILED FOR INSUFFICIENT SPACE FOR
DATA SET PMSR1.AS.TEST.TEMP.F01
//KEYPAIRS DD &KPXOAN.DSN=PMSR1.AS.TEST.TEMP.F01,
// DISP=SHR
// DISP=(,CATLG,DELETE),
// DCB=(LRECL=31,RECFM=FB,BLKSIZE=0),
// UNIT=SYSDA,SPACE=(CYL,(100,10),RLSE) |
|
Why no comma after the "// DISP=SHR"?
Or should it be commented out? |
|
Back to top |
|
|
swathiravichandran
New User
Joined: 21 Jul 2008 Posts: 19 Location: Mumbai
|
|
|
|
This JCL error is solved,because the space I specified is more.
But now my program is giving SOC4 while reading my input file which is VSAM file. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
swathiravichandran wrote: |
But now my program is giving SOC4 while reading my input file which is VSAM file. |
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
What does your assembler code look like for accessing the VSAM file? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
swathiravichandran wrote: |
Code: |
//KEYPAIRS DD &KPXOAN.DSN=PMSR1.AS.TEST.TEMP.F01,
// DISP=SHR
// DISP=(,CATLG,DELETE), |
|
Two DISPositions for a single DSN and still you say
Quote: |
This JCL error is solved |
. . . |
|
Back to top |
|
|
|