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 / brave

Update <Table> set <field> = Substr(<field>,1,5)
||'Y'||Substr(<field>,7,6) where <Condition>

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I need to insert a record in a file using STRSQL containing the some field values same as an already existing record in that file.I know to smple insert mentioning those values one by one.But is there any another query can be prepared for the same .Please share the query if known to you. Thanks in advance.

2262


what is the use of dspatr(mdt) keyword?

1443


Hi,Please give me the the answer for these quesitons? 1.what is IFS and ICF and RAPE amd DISKET fils? explain with example please? 2.What is the difference between POST AND SPACE OPCODES? 3.Can anybody tell me default printerfile command and object type?

2083


http default port 80 is used by some other production http service. How can I create an http instance on another port to run cgidev2 and my future cgi developments?

584


describe the difference between the dowxx and douxx operations?

1161






What is program status data structure(psds) in as400?

605


what is procedure prototype and procedure interface.

621


the maximum number of subfiles that can be active for a single file is ____ .

1180


which are the string manipulation opcodes?

623


what is sflpag and sflsiz ?

2271


what is the difference between udate and the system date?

1152


what are the different types of data areas?

982


what does opcode post do ?

1091


what is message file?

596


define what a data area is along with a brief example of what it may be used for?

960