[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ftpapi] BASE64 Decode

Is there an easy way to decode a field from BASE64 ? ( IBM API maybe that I cannot find )

I have tried Scott’s example but get a “Definition not found for symbol 'BASE64_ENCODE'. “ after I compile my program.

I did all the  compile options in the BASE64R4 documentation.


I tried an example online as well and got the same error just to make sure it was not my main pgm..


Any Ideas?  Its probably something easy I’m not doing  I would guess.


Example off the web :

/copy BASE64_H                                 

D Input           S              6a              

D Output          S              8A             




     input = x'61626b3735';                      

     Output = *blanks;                          


    base64_encode( %addr(Input)                 

     : %len(%trimr(Input))                      

     : %addr(Output)                            

     : %size(Output) );                         


     dsply Output;                              

     *inlr = *on;                               






The information contained in this e-mail is intended only for the individual or entity to whom it is addressed. Its contents (including any attachments) may contain confidential and/or privileged information. If you are not an intended recipient you shall not use, disclose, disseminate, copy or print its contents. If you receive this e-mail in error, please notify the sender by reply e-mail and delete and destroy the message. Continental Express, Inc. and its subsidiaries and affiliates will not be held liable for the unintended or unauthorized use of any information contained in this email or as a result of any additions or deletions of information originally contained in this email.
Ftpapi mailing list