Getting File Names
Posted: Wed Aug 23, 2006 2:37 am
Hi,
While reading data from ascii files I want to get the file names at the same time
Definition of
Source : File Pattern = /export/home/dsadm/cdr/file_name*
Read Method = File Pattern
Example :
file_name1 : a,b,c,d,e,f
file_name2 : g,h,i,j,k,l
file_name3 : 1,2,3,4,5
I want to load records in "file_name1,file_name2,file_name3" files and the name of files at the same time.
Input : /export/home/dsadm/cdr/file_name*
Output : file_name1,a,b,c,d,e,f
file_name2,g,h,i,j,k,l
file_name3,1,2,3,4,5
Thanks In Advance
Best Regards
MAli
While reading data from ascii files I want to get the file names at the same time
Definition of
Source : File Pattern = /export/home/dsadm/cdr/file_name*
Read Method = File Pattern
Example :
file_name1 : a,b,c,d,e,f
file_name2 : g,h,i,j,k,l
file_name3 : 1,2,3,4,5
I want to load records in "file_name1,file_name2,file_name3" files and the name of files at the same time.
Input : /export/home/dsadm/cdr/file_name*
Output : file_name1,a,b,c,d,e,f
file_name2,g,h,i,j,k,l
file_name3,1,2,3,4,5
Thanks In Advance
Best Regards
MAli