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
 

 

Creating VSAM Variable length file - min.722/max.2000 length

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rohanthengal

Active User


Joined: 19 Mar 2009
Posts: 176
Location: Pune, Maharashtra, India

PostPosted: Wed Feb 27, 2013 11:23 am    Post subject: Creating VSAM Variable length file - min.722/max.2000 length
Reply with quote

I want to create KSDS VSAM - variable length file of max length 2000 bytes.
My record to be read/inserted/written/deleted will always have 722 bytes.

But whenever i perform CICS Write or Read or Update, i am getting RESP=22 i.e. LENERROR and RESP2 as 14 in WRITE and 13 in READ.

When i am specifying max length 2000 in LENGTH of READ/REWRITE, i am getting success.

Is there any problem in definition of this VSAM ?
I have specified Avg Record size as 1000 and Max record size is 2000.

We have to define this file as VSAM considering future perspective for application.
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1715
Location: UK

PostPosted: Wed Feb 27, 2013 11:41 am    Post subject:
Reply with quote

If your lrecl is always 722 why tell the system that it may be different? It just leads to problems, as you have found out.
Back to top
View user's profile Send private message
rohanthengal

Active User


Joined: 19 Mar 2009
Posts: 176
Location: Pune, Maharashtra, India

PostPosted: Wed Feb 27, 2013 2:12 pm    Post subject: Reply to: Creating VSAM Variable length file - min.722/max.2
Reply with quote

You are right.
We will be using this file today for one product where length is constant.
But going forward same file will be used by different product and hence length may vary...
Here i have product as one of the components in key.
So, i have to define this file of VARIABLE LENGTH.
Back to top
View user's profile Send private message
rohanthengal

Active User


Joined: 19 Mar 2009
Posts: 176
Location: Pune, Maharashtra, India

PostPosted: Wed Feb 27, 2013 2:14 pm    Post subject:
Reply with quote

When i am supplying max length 2000 while WRITING/REWRITING record.
It works successfully.

when i created its FCT entry, i copied it using CEDA COPY.. and source was FIXED BLOCK file.

So, i doubt if my file has been created with FIXED LENGTH property having max record length 2000 and avg length 1000.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7231

PostPosted: Wed Feb 27, 2013 3:00 pm    Post subject: Reply to: Creating VSAM Variable length file - min.722/max.2
Reply with quote

We can see neither your program code, nor your VSAM definition.

We can say that something is wrong. For a more detailed answer, you need to provide more detail.
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: Wed Feb 27, 2013 3:01 pm    Post subject:
Reply with quote

rohanthengal wrote:
So, i doubt if my file has been created with FIXED LENGTH property having max record length 2000 and avg length 1000.

Quite correct, as described in the manual.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Wed Feb 27, 2013 3:05 pm    Post subject:
Reply with quote

To add to mr Woodger's question show the FCT entry.
Back to top
View user's profile Send private message
rohanthengal

Active User


Joined: 19 Mar 2009
Posts: 176
Location: Pune, Maharashtra, India

PostPosted: Wed Feb 27, 2013 11:26 pm    Post subject:
Reply with quote

Yes, finally my doubt was right.

I had created FCT by copying fixed length file. So altered FCT to record format 'V' and installed the same. Ultimately, program started running smooth.

Thanks a lot.
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
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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