Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

WER255A VSAM LOGICAL ERROR 1C ON OUTPUT
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: WER255A VSAM LOGICAL ERROR 1C ON OUTPUT
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

Senior Member


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

PostPosted: Mon Nov 21, 2011 6:27 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Mon Nov 21, 2011 6:38 pm    Post subject: Re: WER255A VSAM LOGICAL ERROR 1C ON OUTPUT
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    Post subject:
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    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Nov 21, 2011 7:14 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Nov 21, 2011 7:29 pm    Post subject:
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Mon Nov 21, 2011 8:11 pm    Post subject: Reply to: WER255A VSAM LOGICAL ERROR 1C ON OUTPUT
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Mon Nov 21, 2011 9:39 pm    Post subject: Reply to: WER255A VSAM LOGICAL ERROR 1C ON OUTPUT
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: 1738
Location: Bloomington, IL

PostPosted: Mon Nov 21, 2011 9:53 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Mon Nov 21, 2011 10:17 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Mon Nov 21, 2011 10:21 pm    Post subject: Re: Reply to: WER255A VSAM LOGICAL ERROR 1C ON OUTPUT
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Tue Nov 22, 2011 4:43 am    Post subject: Reply to: WER255A VSAM LOGICAL ERROR 1C ON OUTPUT
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    Post subject: Reply to: WER255A VSAM LOGICAL ERROR 1C ON OUTPUT
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    Post subject:
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us