I have acquired the responsibility of updating an existing program that needs to write records to a new file that has two variable length fields to the file.
Everything works to the point of writing the actual data to the file. It runs the write statement and does not throw an error but no data is in the file. I know it has to have something to do with variable length fields in the file but have no idea what needs to be done differently. Can anyone give me some direction?
File Name - BATCHWORK RECORD FORMAT is RBATCHWRK
ID - Identifier 5.0
BATDATE - Date of Batch 8.0
BATCHNO - Batch Number 5.0
BATCHSEQ - Batch Sequence # 5.0
TXAMOUNT - Tx Amount 11.2
TXCODE - TX CODE 2 A
CID - CID 50 Variable allocate 10
TXNOTE - TXNOTE 50 Variable allocate 10
Everything works to the point of writing the actual data to the file. It runs the write statement and does not throw an error but no data is in the file. I know it has to have something to do with variable length fields in the file but have no idea what needs to be done differently. Can anyone give me some direction?
File Name - BATCHWORK RECORD FORMAT is RBATCHWRK
ID - Identifier 5.0
BATDATE - Date of Batch 8.0
BATCHNO - Batch Number 5.0
BATCHSEQ - Batch Sequence # 5.0
TXAMOUNT - Tx Amount 11.2
TXCODE - TX CODE 2 A
CID - CID 50 Variable allocate 10
TXNOTE - TXNOTE 50 Variable allocate 10
Comment