Search found 16 matches

by sbehera00
Thu Dec 12, 2024 11:28 pm
Forum: Other ScottKlement.com Tools
Topic: how to decode base64 encoded zpl data back to ASCII/EBCDIC
Replies: 21
Views: 166675

Re: how to decode base64 encoded zpl data back to ASCII/EBCDIC

Hello Scott,
although SEU giving error "CCSID is not valid", i forced to save the source and compiled. Compilation is fine and also replacing POI with PON, all working fine. Do not know why SEU has problem accepting CCSID keyword but anyway my main problem is solved. THANK YOU VERY MUCH for your ...
by sbehera00
Thu Dec 12, 2024 5:08 am
Forum: Other ScottKlement.com Tools
Topic: how to decode base64 encoded zpl data back to ASCII/EBCDIC
Replies: 21
Views: 166675

Re: how to decode base64 encoded zpl data back to ASCII/EBCDIC

Just want to give one more piece of information:
This is how i am writing to IFS and once data is in IFS this becomes readable (may be ASCII format).
fd = open( %Trim(UEPFIL)
: O_CREAT + O_EXCL + O_WRONLY + O_INHERI
+ O_CCSID
: 0
: 1208
: 0 );
callp write(fd: %addr(ZplOut): zplLen ...
by sbehera00
Thu Dec 12, 2024 5:01 am
Forum: Other ScottKlement.com Tools
Topic: how to decode base64 encoded zpl data back to ASCII/EBCDIC
Replies: 21
Views: 166675

Re: how to decode base64 encoded zpl data back to ASCII/EBCDIC

Hello Scott,
My OS level is V7R3M0

Giving these details running through debug and copy from debug variable display to notepad. Not sure what format the data is in each step...

Base64 encoded data i get is this: B64In =
....5...10...15...20...25...30...35...40...45...50...55...60 ...
by sbehera00
Wed Dec 11, 2024 12:30 pm
Forum: Other ScottKlement.com Tools
Topic: how to decode base64 encoded zpl data back to ASCII/EBCDIC
Replies: 21
Views: 166675

Re: how to decode base64 encoded zpl data back to ASCII/EBCDIC

Hello Scott,
i was able to manage so far by converting this "^POI" to "^PON" by opening ifs file with ccsid 37 and converting value while sending content to printer but now some other system going to use this ifs file so the content in the ifs needs to be replaced with "^PON".

Here are steps i am ...
by sbehera00
Fri Sep 13, 2024 7:30 pm
Forum: Other ScottKlement.com Tools
Topic: how to decode base64 encoded zpl data back to ASCII/EBCDIC
Replies: 21
Views: 166675

Re: how to decode base64 encoded zpl data back to ASCII/EBCDIC

Hello Scott,
when i do
D ZplOutU s 65535A ccsid(*utf8)
SEU gives error "The parameter for keyword CCSID is not valid" then i changed to
D ZplOutU s 65535A ccsid(1208) i get error
The CCSID keyword is not valid with the specified definition.

I have made other way to work. Ideal way i was thinking ...
by sbehera00
Fri Sep 13, 2024 3:03 pm
Forum: Other ScottKlement.com Tools
Topic: how to decode base64 encoded zpl data back to ASCII/EBCDIC
Replies: 21
Views: 166675

Re: how to decode base64 encoded zpl data back to ASCII/EBCDIC

Data looks like this:

EVAL ZplOut
ZPLOUT =
....5...10...15...20...25...30...35...40...45...50...55...60
1 ';ãì!&<ÅÁ>ÁÊ/ÈÁÀÂ`î;ãë;ì ;&ï;&|ñ;&ê'
61 ';ã|;åâ;ãë;ãè; +;ãàå'
121 ';ãë;ã|;åã ÃÃÃÃÃÄÄÄÃÄÃÄÃ'
181 'ÄÄÃÃÄÃÄÃÄÄÃÃÄÃÃÄÃÃÄÃÃÄÃÄ'
241 'ÄÄÃÄÃÃÃÄÃÃÃÃÃÄÄÄÃÄÃÄÃÄÄÃÃ'
301 ...
by sbehera00
Fri Sep 13, 2024 2:52 pm
Forum: Other ScottKlement.com Tools
Topic: how to decode base64 encoded zpl data back to ASCII/EBCDIC
Replies: 21
Views: 166675

Re: how to decode base64 encoded zpl data back to ASCII/EBCDIC

Hello Scott,
followingup on this base64 thread for another need. I got to do some change to ZPL after decoded before writing to IFS. As far as writing to IFS is all working fine but %scan does not find the string ^POI what i am looking for to replace with '^PON because ZplOut is in not in ASCII ...
by sbehera00
Sat Aug 10, 2024 9:13 pm
Forum: HTTPAPI
Topic: How to use HTTPAPI for OAuth 2.0 protocol authentication
Replies: 17
Views: 92382

Re: How to use HTTPAPI for OAuth 2.0 protocol authentication

Hello Scott,
did correct as you mentioned, all working fine now.

Thank you very much for your help...
by sbehera00
Thu Aug 08, 2024 12:38 am
Forum: HTTPAPI
Topic: How to use HTTPAPI for OAuth 2.0 protocol authentication
Replies: 17
Views: 92382

Re: How to use HTTPAPI for OAuth 2.0 protocol authentication

Hello Scott,
here is what provider documentation says
"Idempotency-keys must be a randomly-generated version-4 UUID. Most programming languages support generating random UUIDs out-of-the-box. If an invalid Idempotency-key is included with an request, an error will be returned."
If you can provode ...
by sbehera00
Tue Aug 06, 2024 7:50 pm
Forum: HTTPAPI
Topic: How to use HTTPAPI for OAuth 2.0 protocol authentication
Replies: 17
Views: 92382

Re: How to use HTTPAPI for OAuth 2.0 protocol authentication

Hello Scott,
thank you very much for your help. All authorization part is working fine now only the issue is for label API call, I need to pass Idempotency-Key in header. Question is
1. How to generate Idempotency-Key in as400 ?
2. How to pass Idempotency-Key in the header ?

note: from previous ...