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
 

 

Accessing spanned VSAM file in easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Accessing spanned VSAM file in easytrieve
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: 2435
Location: Netherlands, Amstelveen

PostPosted: Wed Jul 07, 2010 2:35 am    Post subject:
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    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Thu Jul 08, 2010 8:49 pm    Post subject:
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: 2435
Location: Netherlands, Amstelveen

PostPosted: Thu Jul 08, 2010 11:11 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


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