Search found 5 matches

by mm1
Fri Feb 16, 2018 5:20 pm
Forum: Questions & Answers
Topic: #XPRIM_HttpRequest
Replies: 10
Views: 16527

Re: #XPRIM_HttpRequest

I added TOCCSID(819) to the MOV command and it worked.

I appreciate a solution but I'm just worried this technique may be avoiding a bigger issue.

I'll think on it more over the weekend.

Thank you for your time and suggestions.

Muir
by mm1
Fri Feb 16, 2018 4:49 pm
Forum: Questions & Answers
Topic: #XPRIM_HttpRequest
Replies: 10
Views: 16527

Re: #XPRIM_HttpRequest

The target of my HTTP Request is a WAM. The request.body.log shows:

--BgYlioDV53UFJGBk3RO1aCAfTSJKxFDO82bWgJ1aUTaSt6dl4IM5mpA91B6i5xQb
Content-Type: application/octet-stream
Content-Disposition: form-data; name="EBMONJD"; filename="eBOS Monitor Job Data Outbound EXAM1-V40.csv"

and in the WAM I ...
by mm1
Fri Feb 16, 2018 3:50 pm
Forum: Questions & Answers
Topic: #XPRIM_HttpRequest
Replies: 10
Views: 16527

Re: #XPRIM_HttpRequest

Thanks.

As I stated in my original post, my function (not a WAM) creates the CSV file as CCSID 819 using:

Use Builtin(STM_FILE_OPEN) With_Args(#EBMONJOB 'Write Text LineTerminator=CRLF CodePage=819' A)

When I look at t in the IFS (WRKLNK) the generated file CCSID is 819, which is correct.

Once I ...
by mm1
Fri Feb 16, 2018 2:49 pm
Forum: Questions & Answers
Topic: #XPRIM_HttpRequest
Replies: 10
Views: 16527

Re: #XPRIM_HttpRequest

Thanks for the response. I can see the text when I use ReadAllText however there is a 64k restriction which is not big enough for some of my files.

The file is a comma delimited file with CRLF and I need to read the file record at a time.

The doc for STM_FILE_OPEN says that if you use the "text ...
by mm1
Fri Feb 16, 2018 11:32 am
Forum: Questions & Answers
Topic: #XPRIM_HttpRequest
Replies: 10
Views: 16527

#XPRIM_HttpRequest

Hello,

I have used #XPRIM_HttpRequest to post some parameters and a file:

#ContentInfo.Clear
#ContentInfo.MediaType := '*BLANK'
#ContentInfo.ItemName := 'EBSYSUTC'
#Request.Content.AddString Value(#UTCOS) Contentinfo(#ContentInfo)

#ContentInfo.Clear
#ContentInfo.ContentDispositionFileName ...