Can a print file be saved as a xlsx (Excel) file somehow via a cobol program? On Version 10.5.0.
Cybersecurity
DevOps Cloud (ADM)
IT Operations Cloud
If an answer to your question is correct, click on "Verify Answer" under the "More" button. The answer will now appear with a checkmark. Please be sure to always mark answers that resolve your issue as verified. Your fellow Community members will appreciate it!  Learn more
Can a print file be saved as a xlsx (Excel) file somehow via a cobol program? On Version 10.5.0.
Good morning, Doc .
ACUCOBOL-GT does not include a native way to save a file as an Excel file.
You can define the file as a LINE SEQUENTIAL file,
give it a name with a ".csv" file extension,
and organise the fields so that they respect the CSV syntax.
Once done, you'll be able to open/import this file from your Excel.
Alternatively, you can call the Excel methods and classes directly from within the ACU program,
to create a proper Excel file.
Samples of codes are available in this Community.
For example: https://community.microfocus.com/cobol/acucobol/f/forumid-20/357777/saving-excel-workbook-to-specified-file
Regards.
Claudio Contardi
Lead Technical Support Specialist
Rocket Software, Italia
RocketSoftware.com
linkedin.com/rocket-software