Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

JCL & VSAM :: Writing on to GSAM variable length

$
0
0
Author: rohanthengal
Subject: Writing on to GSAM variable length
Posted: Fri Mar 03, 2017 7:46 pm (GMT 5.5)

I am working on one migration where we are writing a record on GSAM variable blocked file.
Output layout has below layout -
Code:
01 DATA.
     05  DATA-LENGTH PIC S9(4) COMP.
     05  DATA-RECORD PIC X(5000).

We are using DATA variable mentioned above while writing into GSAM after moving some length like +104 into DATA-LENGTH and some text value onto DATA-RECORD.

On output file, we can see first 2 bytes of data is getting truncated.

e.g.
Code:
HELLOW WORLD is seen as LLOW WORLD
.

Any idea on what special arrangement is required while working GSAM variable blocked files ? I remember first 4 bytes are getting allocated to length in variable blocked file.

No issues are observed in fixed blocked GSAM. All is well there..
_________________
“There is sufficiency in this world for the man’s need, But not for the mans greed……!!”
---Mahatma Gandhi


Viewing all articles
Browse latest Browse all 8500

Trending Articles