This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

rmnet in combination with JSON GENERATE: Is there a limit to the length of the JSON string or the body in the HttpPost?

I have to post base data e.g. article data, customer data, prices to a website.

So I want to use rmnet in combination with JSON GENERATE.

Basic technic is allready working, e.g. connection to the website, getting a token, post one arcticle data.

Is there a limit to the length of the JSON string or the body in the HttpPost statement (REQUEST-PAYLOAD and REQUEST-LEN)?

If I post the basic data of about 10.000 articles, do I have to spilt the posts or is it better to generate all data into a separate file and post the whole file (if this is possible)?

Does anybody have any experiences about this questions? Unfornuately the sample programs (jgenerate.cbl or jsonPayload.cbl) are very simple.

Parents
  • 0  

    We are not aware of a limit. However, if you encounter an error, please let us know. 

  • 0 in reply to   

    I'm afraid there is a limit because of the parameter in the statement.

    json-data is a alphanumeric value and the maximum length n of pic x(n) is 32768 (which is 2^15).

           1   json-data               pic x(32768).  |2^15

    best regards

Reply
  • 0 in reply to   

    I'm afraid there is a limit because of the parameter in the statement.

    json-data is a alphanumeric value and the maximum length n of pic x(n) is 32768 (which is 2^15).

           1   json-data               pic x(32768).  |2^15

    best regards

Children