title: Create View from logical File programmatically?
body: <p>The question is about Logical Files (LF) on the AS/400 and views, by IBM i DB2.
  I want to know, if there is a way, to programmatically generate an sql statement (or better, directly a view) out of an logical file. </p>
  
  <p>For now, i look up the LF desription (command WRKF ..) and emulate the conditions in the LF.</p>
  
  <p>My knowlege so far, is, that logical files can always be manually(by hand, so to say) converted into SQL selects... but if there is a pitfall, why there can't ever be a programmatic way to do this, i wanna know why.</p>
  
  <p>I'm searching for something like an IBM I method for this, rather to script my own program for that.</p>