View previous topic :: View next topic
|
Author |
Message |
rohanthengal
Active User
Joined: 19 Mar 2009 Posts: 206 Location: Globe, India
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
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 |
|
|
rohanthengal
Active User
Joined: 19 Mar 2009 Posts: 206 Location: Globe, India
|
|
|
|
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 |
|
|
rohanthengal
Active User
Joined: 19 Mar 2009 Posts: 206 Location: Globe, India
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
To add to mr Woodger's question show the FCT entry. |
|
Back to top |
|
|
rohanthengal
Active User
Joined: 19 Mar 2009 Posts: 206 Location: Globe, India
|
|
|
|
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 |
|
|
|