Hi Forum,
I have got a new requirement in my assignment.
My current batch SPUFI looks somewhat like :
UPDATE DB2XX.MMMMM OL
SET MAINT_LAST_DT = CURRENT_DATE
,BO_UNRLS_QT = 0.00
WHERE OL.CORP = '01'
AND OL.DIV_NO = '605'
AND ITEM IN ('5113', '6111', '6112', '6113', '6114',
'6115')
;;;;;
Now this ITEM list is all set to grow every now and then and that too into a big list.
What I have been asked to do is make this ITEM = List into a variable. New item numbers can be added to that variable separately and the SPUFI will remain the same.
Something Like :
UPDATE DB2XX.MMMMM OL
SET MAINT_LAST_DT = CURRENT_DATE
,BO_UNRLS_QT = 0.00
WHERE OL.CORP = '01'
AND OL.DIV_NO = '605'
AND ITEM = List Variable;;;;;;
:- where list variable is a dynamic list which has to be maintained separately.
Can anyone help how this can be achieved??