There is no built in method to retrieve spooled file data from the server and store it in a flat (text only) file. When data is retrieved using arsdoc get or RTVDOCOND, it is assumed that the data will either be reloaded into another server or viewed using a client appropriate for the data type.
If you retrieve the data to a spooled file, you can copy it to a stream file using CPYSPLF, for example:
CPYSPLF FILE(CKS) TOFILE(*TOSTMF) JOB(006123/DBRYANT/QPRTJOB) SPLNBR(54) TOSTMF('/home/dbryant/cks.txt')
The stream file will be encoded in EBCDIC (the CCSID of your job).
If you need the stream file in ASCII, these steps will work (set the CCSID to whatever value you require). (Note that Notepad would still not display the file correctly for me, even when encoded in ASCII.)
QSH CMD('touch -C 819 /home/dbryant/cks2.txt)
CPYSPLF FILE(CKS) TOFILE(*TOSTMF) JOB(006123/DBRYANT/QPRTJOB) SPLNBR(54) TOSTMF('/home/dbryant/cks2.txt') STMFOPT(*REPLACE)
You can also convert to PDF using CPYSPLF, for example:
CPYSPLF FILE(CKS) TOFILE(*TOSTMF) JOB(006123/DBRYANT/QPRTJOB) SPLNBR(54) TOSTMF('/home/dbryant/cks.pdf') WSCST(*PDF)
More information on the using CPYSPLF to a stream file can be found at:
https://www.ibm.com/support/pages/new-cpysplf-function-copy-splfs-stream-files-ifsIn addition to arsdoc print and PRTRPTOND, there is also a PRTDOCOND command, which has more flexibility than PRTRPTOND.