MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WER255A VSAM LOGICAL ERROR 0C ON OUTPUT
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Tue May 22, 2007 8:07 am    Post subject: Reply with quote

I think that I may be tempted to convert the input file to VB during the sort.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12388
Topics: 75
Location: San Jose

PostPosted: Tue May 22, 2007 8:57 am    Post subject: Reply with quote

vkphani,

IMHO the problem lies with the cluster definition. It is missing a REUSE parameter.

Run the following JCL and see if it works

Code:

//STEP0100 EXEC PGM=IDCAMS   
//SYSPRINT DD SYSOUT=*       
//SYSIN    DD  * 
DEL (VSAM) CLUSTER PURGE;
DEFINE CL (NAME(VSAM) -
    INDEXED -
    KEYS (27 0)-
    RECSZ(50 1400) -
    FSPC(55 10) -
    VOL(CPDB01) -
    SUBAL -
    SPEED -
    REUSE -
    SHR (3 3) -
    CYL (05 3)) -
  DATA (NAME(VSAM.DATA) -
    CISZ(8192)) -
  INDEX (NAME(VSAM.INDEX) -
    CISZ(2048));
/*
//STEP2    EXEC PGM=SORT,PARM='VSAMEMT=YES',COND=(0,NE)
//SYSOUT   DD SYSOUT=*
//SORTIN   DD DSN=Flat file,DISP=SHR
//SORTOUT  DD DSN=VSAM file,DISP=SHR
//SYSIN    DD *
  RECORD TYPE=F
  SORT FIELDS=(01,27,CH,A)
/*


Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Tue May 22, 2007 12:49 pm    Post subject: Reply with quote

Nic Clouston wrote:
how do bytes 1-4 get populated?


For VSAM, the record length is kept separate from the record itself. There is no RDW like on QSAM. It gets tacked on if you unload back to QSAM.

vkphani,
Perhaps there are dupes which would cause an out-of-seq condition??
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
amargulies
Beginner


Joined: 10 Jan 2007
Posts: 123
Topics: 0

PostPosted: Tue May 22, 2007 12:53 pm    Post subject: Reply with quote

Quote:
I am getting the below error.
Code:
 
WER255A  VSAM LOGICAL ERROR 0C ON OUTPUT

vkphani,

The most common cause for this problem is when the VSAM dataset was created with the REUSE option, and the SyncSort installation option (or run-time parameter) RESET is not in effect. I would suggest that you try passing the parm RESET to the job.
_________________
Alissa Margulies
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12388
Topics: 75
Location: San Jose

PostPosted: Tue May 22, 2007 1:08 pm    Post subject: Reply with quote

Quote:

vkphani,

The most common cause for this problem is when the VSAM dataset was created with the REUSE option,


amargulies,

The OP's initial post does NOT have REUSE option in his cluster definition.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
amargulies
Beginner


Joined: 10 Jan 2007
Posts: 123
Topics: 0

PostPosted: Tue May 22, 2007 2:42 pm    Post subject: Reply with quote

Kolusu,
Quote:
The OP's initial post does NOT have REUSE option in his cluster definition.
Ah, you are correct. Sorry, I missed that.

vkphani,

According to DFSMS Macro Instructions for Data Sets, the VSAM Logical Error 0C on output indicates that either a record was trying to be stored out of ascending sequence or that a duplicate key exists for that record.

However, if neither is the case, then we may need to review a dump to see what the underlying issue is.

If none of the recommendations in the previous posts rectify the issue, then please contact me offline so we can acquire the necessary diagnostics to resolve the issue for you.

Best Regards,
Alissa
_________________
Alissa Margulies
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12388
Topics: 75
Location: San Jose

PostPosted: Tue May 22, 2007 3:06 pm    Post subject: Reply with quote

vkphani,

As bill pointed out may be you have duplicates in your flat files.

add this statement to your sort step

Code:

//SYSIN    DD *
  OPTION EQUALS
  RECORD TYPE=F
  SORT FIELDS=(01,27,CH,A)
  SUM FIELDS=NONE
/*


Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Tue May 22, 2007 11:34 pm    Post subject: Reply with quote

Hello everybody,

Thanks a lot for your replies. I redefined my cluster with REUSE option and used the sort card given by Kolusu and it worked well.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group