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: 2422
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: 2422
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
No new posts Fail to change physical VSAM filename... jacobdng CICS 6 Fri Jan 20, 2017 12:36 pm
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm


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