View previous topic :: View next topic |
Author |
Message |
ACMcgrath Beginner
Joined: 04 Oct 2003 Posts: 2 Topics: 2
|
Posted: Sat Oct 04, 2003 6:23 am Post subject: Variable Length VSAM in Cobol Program opened as I-O |
|
|
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? 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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Sat Oct 04, 2003 7:25 am Post subject: |
|
|
ACMcgrath,
yes you need to specify the length
Kolusu |
|
Back to top |
|
 |
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
Posted: Sat Oct 04, 2003 7:50 pm Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Sun Oct 05, 2003 7:51 am Post subject: |
|
|
ACMcgrath,
This might help you.
Processing VSAM files
Kolusu |
|
Back to top |
|
 |
|
|