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

WER255A VSAM LOGICAL ERROR 1C ON OUTPUT


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

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Mon Nov 21, 2011 5:31 pm
Reply with quote

Hi all,

I am getting below error while copying VSAM to VSAM file using sort.

Please let me know any changes do i need to do while defining VSAM file or any chnages in sort control card.

below is my JCL.
VSAM Def:-
Code:

DEFINE CLUSTER -                                     
        (NAME(USER.TSTFILE)  -         
        SHAREOPTIONS(2 3) -                           
        VOL(TST*,*,*,*,*,*,*,*)) -                   
       DATA -                                         
        (NAME(USER.TSTFILE.DATA)  -   
        KEYS(010 000) -                               
        CYL(500 500) -                               
        CISZ(4096) -                                 
        RECORDSIZE(477  5997)-                       
        FSPC(5 10)) -                                 
       INDEX -                                       
        (NAME(USER.TSTFILE.INDEX)  -   
        CYL(10 10))               

Sort job to copy
Code:

//SORTOP1  EXEC PGM=SORT                                           
//SORTIN   DD DSN=user.input.TDDN,DISP=SHR                       
//SORTOUT  DD DSN=USER.TSTFILE,DISP=SHR                                         
//SYSOUT   DD SYSOUT=*                                             
//SYSIN    DD *                                                     
  OPTION COPY                                                       
  OMIT COND=(279,9,ZD,EQ,0)                                         
  OUTFIL OUTREC=(1,4,1,4,5,10,279,9,15,264,288,5710),VLFILL=C' '
/*


Below is spool
Code:
WER276B  SYSDIAG= 11999545, 14951234, 14951234, 5340075                 
WER164B  6,884K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,       
WER164B     0 BYTES RESERVE REQUESTED, 1,410,031 BYTES USED             
WER146B  32K BYTES OF EMERGENCY SPACE ALLOCATED                         
WER108I  SORTIN   : RECFM=V    ; LRECL=  5997; CISIZE =  6144           
WER110I  SORTOUT  : RECFM=V    ; LRECL=  5997; CISIZE =  6144           
WER410B  5,856K BYTES OF VIRTUAL STORAGE AVAILABLE ABOVE THE 16MEG LINE,
WER410B     0 BYTES RESERVE REQUESTED, 399,623 BYTES USED               
WER055I  INSERT          0, DELETE    1441516                           
WER255A  VSAM LOGICAL ERROR 1C ON OUTPUT                                 
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000     


Please let me know whats wrong in my code.

Thanks,
Ram.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Mon Nov 21, 2011 6:27 pm
Reply with quote

First learn to use BBcode tagas, they make your code rather readable.

Second, what are you trying to do and what are you asking? Showing the DEFINE for VSAM serves what purpose here?

  • Is the VSAM loaded before using it? Statistics say yes, but was it reporo or something else?
  • You define VSAM and use SORT to load it, no?
  • Are you using same input and output for SORT application?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Nov 21, 2011 6:38 pm
Reply with quote

Code:
  OUTFIL OUTREC=(1,4,1,4,5,10,279,9,15,264,288,5710),VLFILL=C' '


I think the above will mess up you VSAM key.


Topic should be in JCL where the Syncsort questions live.
Back to top
View user's profile Send private message
Rambhupalchowdary

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Mon Nov 21, 2011 6:39 pm
Reply with quote

Thanks Anuj, I will use BBCODE tag in my further postings.

Actually what my requirement was

I want to copy a VSAM file to another VSAM file, both are is VB format.
And want to change few positions as below.
key part 10 bytes same as input and wanted data as mentioned below.

<BBcode>
OUTREC=(1,4,5,10,279,9,15,264,288,5710),
</BBcode>

I have mentioned VSAM Definition how i created and sort job to copy.

Thanks,
Ram.
Back to top
View user's profile Send private message
Rambhupalchowdary

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Mon Nov 21, 2011 6:45 pm
Reply with quote

Here i just moving 9 bytes data from 279 position, after key part.
and remaning data moved to right side.

Code:

OUTREC=(1,4,5,10,279,9,15,264,288,5710),


Thanks,
Ram.
Back to top
View user's profile Send private message
Rambhupalchowdary

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Mon Nov 21, 2011 6:59 pm
Reply with quote

I have checked in input file, there is no duplicates and key is in sorted order.
Please let me know if there is anything wrong in VSAM definition.

Is there any way to do same using IDCAMS ( both copying and rearrange the positions in output file ).

Thanks in advance.
Ram.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Mon Nov 21, 2011 7:14 pm
Reply with quote

What did the WER255A error message tell you.

That is the first place to look rather than post on here
Back to top
View user's profile Send private message
Rambhupalchowdary

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Mon Nov 21, 2011 7:21 pm
Reply with quote

Hi Expat,

This message indicates that records in input file would have duplicates / error in order(ascending).

i cheked in input file, didnt find any duplicates. and its in sorted order.

Thanks,
Ram.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Mon Nov 21, 2011 7:29 pm
Reply with quote

Not too sure if I recall correctly, but there isn't an RDW for VSAM files although you may have to add 4 to all of the starting positions but not have to specify the 1,4 for the RDW.

Of course I could be wrong, but it gives you another avenue to research.
Back to top
View user's profile Send private message
Rambhupalchowdary

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Mon Nov 21, 2011 7:46 pm
Reply with quote

Hi Expat,

There are files with variable length in VSAM.

I am using this file in my requirement.

thanks,
Ram.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Nov 21, 2011 8:11 pm
Reply with quote

Just to show yourself what you mean, why don't you define an ESDS - same info except the key - and use that as your output from the sort. Then you can see what you are doing.

Also, look at your manual, examples here with VSAM KSDS output, etc.
Back to top
View user's profile Send private message
Rambhupalchowdary

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Mon Nov 21, 2011 8:49 pm
Reply with quote

Hi Please clarify below query

IS it possible to add one more field to the VSAM key fields using idcams or sort and copy to another VSAM file ?

eg:-
VB i/p file :- key 10 bytes; total rec size :- 80
1-10 11-80

VB-o/p file:- Key 15 bytes, total rec size :- 80
50-55 1-10 11-49 56-80

In the above output file, key fields are 50-55 and 1-10.
and remaing feilds needs to shift to right side.

Is it possible to acheive this using IDCAM / Sort.Please let me know how to acheive this using any utility.

thanks,
Ram.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Nov 21, 2011 9:39 pm
Reply with quote

Yes, it is possible.

The way you are attempting it, sort of.

You mustn't screw up the key. If you chop it about and make a mess of it, it is unlikely to complete successfully and it definitely won't work.

If you ask and then ignore all suggestions, I'm not sure how you expect to get anywhere.

Why don't you give us the full picture of what you are attempting to do?
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


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

PostPosted: Mon Nov 21, 2011 9:53 pm
Reply with quote

Rambhupalchowdary wrote:
This message indicates that records in input file would have duplicates / error in order(ascending).

Would you care to reconsider that statement?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Nov 21, 2011 10:17 pm
Reply with quote

Rambhupalchowdary wrote:
[...]I want to copy a VSAM file to another VSAM file, both are is VB format.[...]


Whilst at it, have a think about this one as well.

Tell me which page in the VSAM manuals (any one you like) describes Variable Blocked (VB) datasets. Don't tell me all the other obvious stuff, just what it says about VB please.

This may be the root of your failure to create the VSAM file that you want.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Nov 21, 2011 10:21 pm
Reply with quote

Bill Woodger wrote:
Yes, it is possible.

The way you are attempting it, sort of.

You mustn't screw up the key. If you chop it about and make a mess of it, it is unlikely to complete successfully and it definitely won't work.

If you ask and then ignore all suggestions, I'm not sure how you expect to get anywhere.

Why don't you give us the full picture of what you are attempting to do?


You'd better disregard this reply of mine. I didn't read the question, but assumed it was related to what you were already doing.

Different question, different topic please. I'd say Yes for Sort, Don't Think So for REPRO. A good way that I'd favour it to actually consider going to the effort of writing a program, if that best fits the requirement (which automatically assumes professionalism).
Back to top
View user's profile Send private message
Rambhupalchowdary

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Mon Nov 21, 2011 10:40 pm
Reply with quote

Hi Bill,

Actually i didnt see any documentation related to VSAM variable blocked datasets.

While doing the above requirement, i got few error which are related to variable block datasets eg:- input short record; RDW not in control card

Based on this i assumed that the input file is a variable block file. Also when i check with matching copybook it was 4bytes less than this file.

Thanks,
Ram.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Nov 22, 2011 4:43 am
Reply with quote

Hi Ram,

You wouldn't see VSAM documentation for VB, because it means nothing in VSAM, because VSAM uses its own methods for storing the data.

Another misconception that you have has been pointed out by Mr Akatsukami. The 1C is not telling you about the input file, but about the output file as has been arranged by your sort statements.

I'm a bit lost as to where you are with all this. I have already suggested you run your output to an ESDS so that you can verify what the key looks like on the output. If that is all OK, then it implies that you have a duplicate key you are trying to insert on your KSDS - a record already existing.

If after this you still have problems, post your current sort cards, a few records from the input, sequential output and the KSDS (same sort of key ranges) and we can have a new look.
Back to top
View user's profile Send private message
Rambhupalchowdary

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Tue Nov 22, 2011 9:54 am
Reply with quote

Thnks bill,

I will do that and let you know if i face any problem.

thanks,
Ram.
Back to top
View user's profile Send private message
Rambhupalchowdary

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Tue Nov 22, 2011 3:09 pm
Reply with quote

Hi Bill,

I did as you said, created ESDS file and cheked the data i did not find any duplicates and order also correct.

when i am running the below jcl, am getting few records in output file and getting RC 16 with below error:-
VSAM LOGICAL ERROR 1C ON OUTPUT

Also when i change CYL in VSAM def, record count varying in output file.
I hope something we need to change in VSAM def.

below is my VSAM def, which am using while copying using sort card:-

Code:

DEFINE CLUSTER -                                         
        (NAME(USER.vsamfile)  -           
        SHAREOPTIONS(2 3) -                             
        VOL(TST*,*,*,*,*,*,*,*)) -                       
       DATA -                                           
        (NAME(USER.vsamfile.DATA)  -       
        KEYS(019 000) -                                 
        CYL(4000 4000) -                                 
        CISZ(4096) -                                     
        RECORDSIZE(5993 5993)-                           
        FSPC(5 10)) -                                   
       INDEX -                                           
        (NAME(USER.vsamfile.INDEX)  -     
        CYL(10 10))                                     


Sortcard:-

Code:

//SYSIN    DD *                                                     
  OMIT COND=(279,9,ZD,EQ,0)                                         
  SORT FIELDS=(279,9,ZD,A,5,2,PD,A,7,7,PD,A,14,1,ZD,A)             
  OUTFIL FNAMES=SORTOUT,VTOF,                                       
         OUTREC=(279,9,5,274,288,5710)                             
/*                                                                 


below is my spool
Code:

WER276B  SYSDIAG= 11174253, 14307373, 14307373, 3461250                       
WER164B  23,412K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,           
WER164B     0 BYTES RESERVE REQUESTED, 23,316K BYTES USED                     
WER146B  32K BYTES OF EMERGENCY SPACE ALLOCATED                               
WER108I  SORTIN   : RECFM=V    ; LRECL=  5997; CISIZE =  6144                 
WER110I  SORTOUT  : RECFM=F    ; LRECL=  5993; CISIZE =  6144                 
WER410B  22,384K BYTES OF VIRTUAL STORAGE AVAILABLE ABOVE THE 16MEG LINE,     
WER410B     0 BYTES RESERVE REQUESTED, 22,372K BYTES USED                     
WER036B  G=2534,B=16368,SEGLEN=4512,BIAS=00                                   
WER045C  END SORT PHASE                                                       
WER055I  INSERT          0, DELETE    1462004                                 
WER255A  VSAM LOGICAL ERROR 1C ON OUTPUT                                       
WER418I  DATASPACE(S) AND/OR ZSPACE USED                                       
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                                 


Please guide me if there is any problem with the VSAM def.

Thanks,
Ram.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Nov 22, 2011 3:26 pm
Reply with quote

VSAM LOGICAL ERROR 1C :

Data set cannot be extended because VSAM cannot allocate additional direct-access storage space. Either there is not enough space left in the data space for the secondary-allocation request or an attempt was made to increase the size of a data set by splitting the control area (high used RBA change) during processing with SHROPT=4 and DISP=SHR.
Back to top
View user's profile Send private message
Rambhupalchowdary

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Tue Nov 22, 2011 3:36 pm
Reply with quote

Peter,

please let me know if i need to do any changes in VSAM def, to increase the size ?

thanks,
Ram.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Nov 22, 2011 3:41 pm
Reply with quote

You dont use SHROPT=4, so it would be the secondary allocation. Look for messages in your job log, indicating an allocation problem.
Back to top
View user's profile Send private message
Rambhupalchowdary

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Tue Nov 22, 2011 3:51 pm
Reply with quote

Hi Peter,

I have not used SHROPT=4. i have used :- SHAREOPTIONS(2 3)

Check VSAM Def which i have mentioned above.

Please correct me if i am worng?

thanks,
Ram.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Nov 22, 2011 3:55 pm
Reply with quote

How can i correct you if you dont understand what i said.

Once again, you dont use SHROPT=4. So look for secondary allocation problems in your job log.
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 Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts Help on IMS -API URL migrating from P... IMS DB/DC 1
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Reroute print output via REXX/SDSF TSO/ISPF 6
No new posts JES datasets IO Error ABENDS & Debugging 3
No new posts Error to invoke MPP program through B... IMS DB/DC 3
Search our Forums:

Back to Top