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 1, 2  Next
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Tue May 22, 2007 4:02 am    Post subject: WER255A VSAM LOGICAL ERROR 0C ON OUTPUT Reply with quote

Hi,

I am trying to copy a Flat file (RECFM=FB; LRECL= 1400; BLKSIZE= 14000) into a VSAM file ( RECFM=F; LRECL= 1400; CISIZE = 8192) using SORT. I am getting the below error.
Code:
WER255A  VSAM LOGICAL ERROR 0C ON OUTPUT


My job is as below:
Code:
//STEP4    EXEC PGM=SORT,COND=(0,NE)
//SYSOUT   DD SYSOUT=*
//SORTIN   DD DSN=Flat file,DISP=SHR
//SORTOUT  DD DSN=VSAM file,DISP=SHR
//SYSIN    DD *
  SORT FIELDS=COPY
/*
//*


Please let me know what should be done to avoid this error.

VSAM file is delete defined in one of the previous steps as below:
Code:
DEL (VSAM) CLUSTER PURGE;
DEFINE CL (NAME(VSAM) -
    INDEXED -
    KEYS (27 0)-
    RECSZ(50 1400) -
    FSPC(55 10) -
    VOL(CPDB01) -
    SUBAL -
    SPEED -
    SHR (3 3) -
    CYL (05 3)) -
  DATA (NAME(VSAM.DATA) -
    CISZ(8192)) -
  INDEX (NAME(VSAM.INDEX) -
    CISZ(2048));
Back to top
View user's profile Send private message Send e-mail
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue May 22, 2007 4:17 am    Post subject: Reply with quote

Unfortunately there is not a link to the Syncsort manual above so I cannot read what about that error message. What does it say, in particular with regard to ERROR 0C?
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue May 22, 2007 4:20 am    Post subject: Reply with quote

However, I have just done a Google search on WER255A and came up with this:

http://www.idugdb2-l.org/adminscripts/wa.exe?A2=ind0202d&L=db2-l&P=28020

which probably explains your error
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Tue May 22, 2007 4:44 am    Post subject: Reply with quote

Change the SORT FIELDS=COPY to actually sort on the KSDS key.
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Tue May 22, 2007 4:48 am    Post subject: Reply with quote

Nic Clouston,

The link says when you are LOADING an "empty" VSAM file, you must
present the records in key order. I am copying in the same manner, but no use.


Last edited by vkphani on Tue May 22, 2007 4:58 am; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Tue May 22, 2007 4:51 am    Post subject: Reply with quote

CICS Guy,

I changed the SORT card to sort on actual key (SORT FIELDS=(1,27,CH,A)) and tried but no use.
Back to top
View user's profile Send private message Send e-mail
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue May 22, 2007 5:36 am    Post subject: Reply with quote

Your vsam file is empty so your copy IS loading. You will also note that the original poster in that link WAS doing a sort. However, that aside, you say you are now sorting on the VSAM key and still getting the problem. I do not know if there were any more relevant links in that Google search. Repeat it and have a look - just search on WER255A. You could try searching this forum for the same, if you have not already done so. As you know, you are not the first person to encounter this problem.

Failing that, you will just have to wait for someone who has extra ideas. (not me!)
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue May 22, 2007 5:47 am    Post subject: Reply with quote

vkphani,

the vsam is variable length,
Quote:

RECSZ(50 1400) -

even though you said
Quote:

VSAM file ( RECFM=F; LRECL= 1400; CISIZE = 8192)


does (sort fields) have to take into account the VLI of the output record?
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue May 22, 2007 6:13 am    Post subject: Reply with quote

vkphani,

Try these control cards
Code:

  RECORD TYPE=F
  SORT FIELDS=(01,27,CH,A)


And since you are loading an empty cluster , i suggest that you add VSAMEMT parm. check this link for example.

http://www.mvsforums.com/helpboards/viewtopic.php?p=26921#26921

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 6:58 am    Post subject: Reply with quote

Kolusu,

I did change my JCL per your suggestion. Still getting the same error.

The changed JCL is below.

Code:
//STEP4    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)
/*
//*
Back to top
View user's profile Send private message Send e-mail
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue May 22, 2007 7:04 am    Post subject: Reply with quote

Dick reckons your VSAM file is VB therefore you have to start at +4 so your sort would be
Code:
 SORT FIELDS=(05,27,CH,A)

_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Tue May 22, 2007 7:05 am    Post subject: Reply with quote

Quote:

Dick reckons your VSAM file is VB therefore you have to start at +4 so your sort would be


Getting the same error message even after changing the SORT card as SORT FIELDS=(05,27,CH,A)
Back to top
View user's profile Send private message Send e-mail
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue May 22, 2007 7:20 am    Post subject: Reply with quote

vkphani,

this is a very simple process: load a sorted QSAM to an empty VSAM.

obviously we all are missing something.

have you tried repro'ng 1 record to the VSAM DS? That way you can determine if it is a sort problem or a VSAM definition problem.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Tue May 22, 2007 7:34 am    Post subject: Reply with quote

dbzTHEdinosauer,

I did use REPRO to copy but only few records got copied and the job ended with RC=12 by giving the below error message.

Code:
IDC3314I **RECORD OUT OF SEQUENCE
Back to top
View user's profile Send private message Send e-mail
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

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

I've just reviewed some of this: your input file is FB so your sort field starts at position 1, not 5. BUT your output record is VB therfore you have to allow 4 bytes at the beginning of the record and your key should start at position 5. Anyone disagree? And, if so, how do bytes 1-4 get populated? by sort or by the io routines?
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
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 1, 2  Next
Page 1 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