How To
Summary
Example of result that uses "PLUGIN/cldownload" with Colheadings and usecollabels ACS.
Objective
Environment
Steps
Select * from MYLIB.CUSTALL


/colheadings=<1/0> - Include column headings as the first row. When specified, the column names are the heading.
/colheadings=1 show ALIAS in DDS
/colheadings=1 /usecollabels show COLHDG in DDS
/usecollabels - Use column labels for the heading
Example of commands given:
Set the path where is the file acsbundle.jar depending on the installation path selected.
C:\*\IBM\ClientSolutions\acsbundle.jar
java -Xmx1024m -Dcom.ibm.iaccess.dataxfer.SheetId=%1$s -jar acsbundle.jar /PLUGIN=cldownload /system=MySYSTEM /hostfile=MYLIB/CUSTALL /clientfile=/Temp/test.xlsx /colheadings=0


java -Xmx1024m -Dcom.ibm.iaccess.dataxfer.SheetId=%1$s -jar acsbundle.jar /PLUGIN=cldownload /system=MySYSTEM /hostfile=MYLIB/CUSTALL /clientfile=/Temp/test.xlsx /colheadings=1 /usecollabels

java -Xmx1024m -Dcom.ibm.iaccess.dataxfer.SheetId=%1$s -jar acsbundle.jar /PLUGIN=cldownload /system=MySYSTEM /hostfile=MYLIB/CUSTALL /clientfile=/Temp/test.xlsx /colheadings=1

From IBM i Control Line:
/QIBM/proddata/access/acs/base
RUNJVA CLASS('/QIBM/proddata/access/acs/base/acsbundle.jar') PARM('/PLUGIN=cldownload' '/SYSTEM=localhost' '/hostfile=MYBLIB/CUSTALL' '/clientfile=/home/MYUSER/Testscustall.xlsx' '/colheadings=0')
RUNJVA CLASS('/QIBM/proddata/access/acs/base/acsbundle.jar') PARM('/PLUGIN=cldownload' '/SYSTEM=localhost' '/hostfile=MYBLIB/CUSTALL' '/clientfile=/home/MYUSER/Testscustall1.xlsx' '/colheadings=1')
RUNJVA CLASS('/QIBM/proddata/access/acs/base/acsbundle.jar') PARM('/PLUGIN=cldownload' '/SYSTEM=localhost' '/hostfile=MYBLIB/CUSTALL' '/clientfile=/home/MYUSER/Testscustall2.xlsx' '/colheadings=1' '/usecollabels')
Additional Information
IBM i Access - Client Solutions 5733XJ1
https://www.ibm.com/support/pages/ibm-i-access-client-solutions-5733xj1
Document Location
Worldwide
Product Synonym
AS400;IBM i;ACS;Access Client Solution;
Was this topic helpful?
Document Information
Modified date:
06 October 2022
UID
ibm16567579