2 header rows and one tail row should be removed
Posted: Fri Aug 29, 2008 11:57 am
hi
i got a file with one header row and one tail row in between this there is a data. and we need to remove the 2 headers and the 1 tail row. the data which is in between 2 headers and 1 tailer should be used as a source sequential file and the target is also a sequential file. and i am using datastage parallel job. but i need to get the 071221 as a new column as (field6). and i am getting this type of file in daily base.
can any one help me that this type of file can be taken in datastage parallel. pls let me know how can i do this job .
for ex:
i/p file
! file created on 071221
! date 071221
field1 field2 field3 field4 field5
data data data data data
data data data data data
data data data data data
data data data data data
data data data data data
data data data data data
all rows 7.
o/pfile
field1 field2 field3 field4 field5 filed6
data data data data data 071221
data data data data data 071221
data data data data data 071221
data data data data data 071221
data data data data data 071221
data data data data data 071221
thank you
i got a file with one header row and one tail row in between this there is a data. and we need to remove the 2 headers and the 1 tail row. the data which is in between 2 headers and 1 tailer should be used as a source sequential file and the target is also a sequential file. and i am using datastage parallel job. but i need to get the 071221 as a new column as (field6). and i am getting this type of file in daily base.
can any one help me that this type of file can be taken in datastage parallel. pls let me know how can i do this job .
for ex:
i/p file
! file created on 071221
! date 071221
field1 field2 field3 field4 field5
data data data data data
data data data data data
data data data data data
data data data data data
data data data data data
data data data data data
all rows 7.
o/pfile
field1 field2 field3 field4 field5 filed6
data data data data data 071221
data data data data data 071221
data data data data data 071221
data data data data data 071221
data data data data data 071221
data data data data data 071221
thank you