Can you please let me know the JCL step which will take the input as below and output will have the same records and a duplicate of that particular record which has the value as 004454211 in the first 15 bytes.

That is whenever first 15 bytes are ‘004454211 ‘ then this should be replaced with ‘037518412D72 ‘, but the old record should also be present in the file.

Posted: Fri May 30, 2008 3:13 pm Post subject: Change the first 15 bytes of a record with a new value.

Can you please let me know the JCL step which will take the input as below and output will have the first 15 bytes changed to '037518412D72 ' .
That is whenever first 15 bytes are ‘004454211 ‘ then this should be changed to ‘037518412D72 ‘.

Posted: Fri May 30, 2008 3:29 pm Post subject: Reply to: Change the first 15 bytes of a record with a new v

I am extreamly sorry, but i need this to be done urgently, thats y what i did was that i have copied all the records with first 15 bytes as <004454211 > into a new file, So my present requirement will be to change the all the records with first 15 bytes to a new value,

Posted: Fri May 30, 2008 3:35 pm Post subject: Reply to: Change the first 15 bytes of a record with a new v

Quote:

but i need this to be done urgently

for urgencies never rely on forums
replying is on voluntary basis, time availability and at no charge
and the posting style must make people willing to answer,
posting repeatedly, changing mind, claiming urgency,
well... are just things that do not encourage

if You want something done quickly, according to Your specs and out of the box
You/Your_organization should be prepared to pay for it

For the WHEN operand, the constant will be padded on the right with blanks to the length of the field (15 characters). For the OVERLAY operand, we use 3X to pad the constant with blanks on the right to 15 characters.