Page 1 of 1

replacing values in a VSAM file

PostPosted: Thu Nov 07, 2013 1:05 am
by rajaranganathan
Hi All,

i have a file in which i need to replace a in particular position with another value.

Example

if 190 replace with 200
if 191 replace with 201
and its keeps going till
if 210 replace with 220.

Please help, how this can be performed in a sort.

Re: replacing values in a VSAM file

PostPosted: Thu Nov 07, 2013 1:12 am
by Akatsukami
What kind of VSAM data set is it? Are the altered positions part of a key?

Re: replacing values in a VSAM file

PostPosted: Thu Nov 07, 2013 5:21 am
by NicC
If you want to do it in sort why waste time posting in the JCL section when there are sections for both Dfsort and Syncsort? Which sort product do you use? Tell us that and your topic will be moved to the correct part of the forum.

Re: replacing values in a VSAM file

PostPosted: Thu Nov 07, 2013 6:39 am
by BillyBoyo
Your SORTIN and SORTOUT should be different datasets. You should not attempt to update a VSAM dataset "in place" with your SORT product.