how to create a file with header record? and detail record from table rows?
file lay out should be like this
H123456YYYYMMDD
D12345PETER20120521
D12345JOHN20130522
D12345ADAM20130523
hOW CAN I CREATE HEADER RECORD AND DETAIL RECORD LIKE ABOVE ( HEADER SHOULD BE SAME ALL THE TIME WITH DIFFERENT DATE DEPENDS ON RUNDATE)?
ANY SAMPLE CODES PLEASE
THANKS GUYS