View previous topic :: View next topic |
Author |
Message |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Tue May 22, 2007 4:02 am Post subject: WER255A VSAM LOGICAL ERROR 0C ON OUTPUT |
|
|
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 |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Tue May 22, 2007 4:17 am Post subject: |
|
|
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 |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
|
Back to top |
|
 |
CICS Guy Intermediate
Joined: 30 Apr 2007 Posts: 292 Topics: 3
|
Posted: Tue May 22, 2007 4:44 am Post subject: |
|
|
Change the SORT FIELDS=COPY to actually sort on the KSDS key. |
|
Back to top |
|
 |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Tue May 22, 2007 4:48 am Post subject: |
|
|
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 |
|
 |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Tue May 22, 2007 4:51 am Post subject: |
|
|
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 |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Tue May 22, 2007 5:36 am Post subject: |
|
|
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 |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Tue May 22, 2007 5:47 am Post subject: |
|
|
vkphani,
the vsam is variable length,
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Tue May 22, 2007 6:58 am Post subject: |
|
|
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 |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Tue May 22, 2007 7:04 am Post subject: |
|
|
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 |
|
 |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Tue May 22, 2007 7:05 am Post subject: |
|
|
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 |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Tue May 22, 2007 7:20 am Post subject: |
|
|
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 |
|
 |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Tue May 22, 2007 7:34 am Post subject: |
|
|
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 |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Tue May 22, 2007 8:00 am Post subject: |
|
|
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 |
|
 |
|
|