Forum Post: Handling Uninitialized Prodataset And Temp-table When Using Bind Keyword

  • Thread starter Thread starter jquerijero
  • Start date Start date
Status
Not open for further replies.
J

jquerijero

Guest
When using BIND, prodataset and temp-table remain uninitialized unless the source program touches (create a temp-table) them. If you want to keep the prodataset and temp-table empty, you will need to create a dummy record and delete it. Is there a way to check if the prodataset is still uninitialized because the source program has been called yet? And also, is there a way to force the initialization without creating and deleting a dummy temp-table record? EXAMPLE: Source.cls SomeMethod(OUTPUT ds): /* if SomeMethod doesn't create any temp-table, the output ds will remain uninitialized */ END METHOD. Consumer.cls src = NEW Source() src:SomeMethod(OUTPUT ds BIND)

Continue reading...
 
Status
Not open for further replies.
Back
Top