I have 1 rd in my flat file.
say reord from 1 to 10 position : 'AS400NDB2400'
I need to change the value from N to Y
using SQL stmt ...How can I update this....?

Answer Posted / sachin

Try using this stmt :-

UPDATE TT SET TT = SUBSTR(TT,1,6) || 'Y' || substr(tt,8,6)

Cheers...

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is xfoot opcode ?

1051


how do you specify the number of records to roll in a subfile ?

1239


WHAT IS AS/400 SYNORIO?

2886


What is binder language ?

1361


Apart from opening of a file do we have any other use of USROPN?

955






during input operation which indicator position is seton if there is a record lock?

927


How can we arrange duplicate records in a file?

601


how can a cgi check whether an ifs object is available?

641


how you will find an error which is not in the first page of the subfile without using rolldown key?

553


what would be the effect on the field where reverse image, underline and highlight display attributes were active?

933


what is the difference between packed decimal and zoned decimal?

2252


is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.

2119


what is the purpose of the indara keyword?

1126


what is the maximum number of fields under a record format of physical file?

1000


is it possible to create a physical file without dds?

1192