Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.
Hi all. I'm having a brain fart this morning...... I know I can define a data structure that can be used as the layout for a write to a flat file, but I can't remember how I need to code the moving of the data structure to the flat file record format prior to the write. Can someone please refresh my memory?
Thanks!
No need to move the data structure. If you make the data structure length the same as the file record length, then you would code the write like this:
Write filename dsname