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

Accessing spanned VSAM file in easytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
smaru

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Wed Jul 07, 2010 12:44 am
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Wed Jul 07, 2010 2:35 am
Reply with quote

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
View user's profile Send private message
smaru

New User


Joined: 22 Oct 2008
Posts: 49
Location: India

PostPosted: Thu Jul 08, 2010 8:06 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Jul 08, 2010 8:49 pm
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Thu Jul 08, 2010 11:11 pm
Reply with quote

Yes, CICS Guy thats the way to do it or using subscripting to walk through
the record.
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top