MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Variable Length VSAM in Cobol Program opened as I-O

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
ACMcgrath
Beginner


Joined: 04 Oct 2003
Posts: 2
Topics: 2

PostPosted: Sat Oct 04, 2003 6:23 am    Post subject: Variable Length VSAM in Cobol Program opened as I-O Reply with quote

Does anyone know if I need to specify length (ws-len) for a variable length Vsam file opened as I-O in a cobol program on a write or rewrite? Question Even if I specify:
FD SPADMAST-FILE
RECORDING MODE IS V
LABEL RECORDS ARE STANDARD
RECORD IS VARYING IN SIZE FROM 90 TO 2899.


just before the write I still have to say spad-rec-length = ws-len?

and add depending on ws-len in the FD. I really thought that VSAM would handle that. huh.
_________________
Anne


Last edited by ACMcgrath on Sat Oct 04, 2003 11:18 am; edited 1 time in total
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Sat Oct 04, 2003 7:25 am    Post subject: Reply with quote

ACMcgrath,

yes you need to specify the length

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Sat Oct 04, 2003 7:50 pm    Post subject: Reply with quote

Hi Anne,

You said:
Quote:

just before the write I still have to say spad-rec-length = ws-len?

I don't understand this. Can you elaborate?


Thanx, Jack.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Sun Oct 05, 2003 7:51 am    Post subject: Reply with quote

ACMcgrath,

This might help you.

Processing VSAM files

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group