how to import into Sage 300 2017 General Ledger ?

our company have more than 40000 journal entry history data  - how to import into Sage 300 2017 General Ledger ?

I tried entering manual Journal and export in excel sheet then add 5 journals on headers and details , then import from excelsheet

it's imported successfully   but all journals in one batch , i want it to be imported in 5 batches

can any one help?