The gummiment sends my clients CDs periodically for upload on the 400. DSPOPT shows these to have a media format of *UDF and a CCSID of 500. The single file of interest on these has a CCSID of 65535. I would like to CPYFRMSTMF this file to a file in a library on the server, but after many hours of trying various things, I don't think that's going to happen. (FWIW, a media format of *ISO9660 works fine, but that--of course--is not what the gummiment sends.) So here's the only thing I've found that has yielded any hope at all, and if someone knows a better way, I'd be happy to hear it:
First, I use CPY to put the file in the IFS, using a FROMCCSID of 1252 and a TOCCSID of 850, and a data format of *TEXT. Then, I use CPTFRMSTMF to copy from the file in the IFS to my database file. The stream file code page is simply *STMF, and the DB file code page is *FILE. I admit to not being real familiar with CCSIDs, but we're just dealing with a text-file here, American-English and no special characters. Is there a better way?
First, I use CPY to put the file in the IFS, using a FROMCCSID of 1252 and a TOCCSID of 850, and a data format of *TEXT. Then, I use CPTFRMSTMF to copy from the file in the IFS to my database file. The stream file code page is simply *STMF, and the DB file code page is *FILE. I admit to not being real familiar with CCSIDs, but we're just dealing with a text-file here, American-English and no special characters. Is there a better way?
Comment