text - Building a dependency tree of file used in a batch job using Python -


i trying build tree dependency files used in batch job.the input program .csv file has 4 columns , of following format. jobname,stepnumber,program,filename,mode sample data below:

j1  s1  pgm1    f1  input j1  s1  pgm1    f2  input  j1  s1  pgm1    f3  output j1  s1  pgm1    f4  output j1  s2  pgm2    f3  input j1  s2  pgm2    f6  output j1  s3  pgm3    f6  input j1  s3  pgm3    f7  input j1  s3  pgm3    f8  output j1  s4  pgm4    f8  input j1  s4  pgm4    f2  input j1  s4  pgm4    f10 output j1  s4  pgm4    f11 output 

trying build dependency of files used in job below:

j1:f1,f2-->f3-->f6,f7-->f8,f2-->f10,f11 j1:f1,f2-->f4 

main objective of building tree structure because used input searching file.in if need list files input f6, f1,f2,f3 identified using tree structure.is there better way search file rather constructing dependency tree?

added above,i using python, not familiar library constructing tree structure?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -