p-behr / PF2XLSX

Output the contents of a table/physical file (PF) to an OOXML spreadsheet (XLSX)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PF2XLSX

Reads the contents of a table and outputs it in OOXML (XLSX) format .

Prerequisites and Limitations

Please consider voting for this enhancement to the CPYTOARCF command
https://ibm-power-systems.ideas.ibm.com/ideas/IBMI-I-1816

Install

  1. Download the source

    • IFSIO_H is from Scott Klement (thanks Scott!).
      If you already have that on your system than you probably don't need this one.
  2. Compile the objects

    • Compile the RPG program
    • Optionally compile the command

Usage

  • Command:
    PF2XLSX FILE(SOMELIB/MYTABLE) XLSX('/the/path/where/you/want/spreadsheet.xlsx') 
    
  • Prototyped call:
    **free
    /copy PF2XLSX_H
    PF2XLSX('SOMELIB/MYTABLE' : '/the/path/where/you/want/spreadsheet.xlsx');
    return;
    

Params

  1. The table to read. Format can be:
    • "FILE"
    • "LIB/FILE"
    • "FILE______LIB" data structure
  2. The full path, including filename and extension, where you want the spreadsheet:
    "/the/path/where/you/want/spreadsheet.xlsx"

About

Output the contents of a table/physical file (PF) to an OOXML spreadsheet (XLSX)

License:MIT License


Languages

Language:RPGLE 98.3%Language:Batchfile 1.7%