View previous topic :: View next topic
|
Author |
Message |
smaru
New User
Joined: 22 Oct 2008 Posts: 49 Location: India
|
|
|
|
I have a VSAM (spanned KSDS) file having a LRECL of 100100 and RECFM=FB. I am trying to write a easytrieve program to access the file (only read) but the compilation fails with error message :
B097 LENGTH INVALID FOR TYPE
I have tried to lookout for some examples but couldn't find any. I know i can access the file using COBOL but just wanted to know, if it is a restriction in easytrieve for LRECL of VSAM file.
Any info provided is appreciated. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
In Easytrev VSAM files are of undefined length.
You have to give some info about your FILE statement and/or field declarations to determine what results in your error. |
|
Back to top |
|
|
smaru
New User
Joined: 22 Oct 2008 Posts: 49 Location: India
|
|
|
|
Thank you for the reply.
I have been working on easytrieve for quite sometime and I do understand the file definition and declarations.
part of the error details are as follows,
FILE TSTFILE VS
IN-REC 01 100100 A
*******B097 LENGTH INVALID FOR TYPE - A
so with the above definition, I was wondering if there is a limit to the LRECL in easytrieve to a max of 32767.
correct me if I'm wrong. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
CA-Easytrieve/Plus Reference Guide wrote: |
Length restrictions for varying length fields are as follows:
Code: |
field minimum maximum
type length length
_____ _______ _______
A 3 32769
K 4 32768
M 4 32769 |
|
Why not try defining several fields instead of just one? |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Yes, CICS Guy thats the way to do it or using subscripting to walk through
the record. |
|
Back to top |
|
|
|