Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Wed Dec 01, 2004 6:12 am Post subject:
coolguy,
Quote:
I have vsam file lrec 4370, VB, KSDS i want change 1,2 position +106 to +407 the veriable dec as s9(2) comp3 can u help me in that
Since your input file is a VB file, the actual position of the data is from the 5th byte as the first 4 bytes contains the RDW.
I am assuming that you wanted to hardcode a value of +407 on all the records.You can use the same input vsam file as output vsam file when it is defined with REUSE option.
If your intention is to change the value of +106 to +407 then you need a change parm. The following JCL will replace all the records which have +106 to +407 .
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Wed Dec 01, 2004 9:28 am Post subject:
Coolguy,
You can use the same input vsam file as output vsam file ONLY when it is defined with REUSE option.
I suspect that your vsam file allocated with reuse=no
So the only option left for you is to code a program to update the vsam file or if you still want to use sort then you need to delete/redefine and reload the cluster.
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