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....?

Answers were Sorted based on User's Feedback



I have 1 rd in my flat file. say reord from 1 to 10 position : 'AS400NDB2400' I need to ..

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

I have 1 rd in my flat file. say reord from 1 to 10 position : 'AS400NDB2400' I need to ..

Answer / brave

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

Is This Answer Correct ?    3 Yes 0 No

I have 1 rd in my flat file. say reord from 1 to 10 position : 'AS400NDB2400' I need to ..

Answer / surya siram

UPDATE FF SET SUBSTR(RCD, 6, 1) = 'Y' WHERE SUBSTR(RCD, 6, 1) = 'N'

Is This Answer Correct ?    0 Yes 0 No

I have 1 rd in my flat file. say reord from 1 to 10 position : 'AS400NDB2400' I need to ..

Answer / mahalakshmi

update file1 set file1 = 'AS400YDB2400' where file1 = 'AS400NDB2400'

Is This Answer Correct ?    0 Yes 0 No

I have 1 rd in my flat file. say reord from 1 to 10 position : 'AS400NDB2400' I need to ..

Answer / murali

Update <FileName> set substr(<Field Name>,6,1) = 'Y' where
substr(<Field Name>,6,1) = 'N'

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More IBM AS400 AllOther Interview Questions

what is a program described file in rpg?

1 Answers   IBM,


Difference Between Ca & Cf?

0 Answers   IBM,


what are two types of record are used in subfile?

1 Answers   IBM,


how do you specify page overflow indicator for printer files in rpg?

1 Answers   IBM,


why we use binding directory and service pgm

4 Answers   TCS,






what is clile code get last digit in numarice value

2 Answers   CFC,


How do I release jobs in queue and change a job destination to a different printer. I know wrkjobq but I have not worked with As/400 for a while,so_can someone help me?

2 Answers  


how to write code for singlepage in sqlrpgle with update ?

0 Answers  


What are the types of data areas?

1 Answers  


what are the two record formats a subfile contain ?

1 Answers   IBM,


How many libraries can be there in library list ?

1 Answers  


What is difference between fully procedural file and primary file?

1 Answers  


Categories