Skip to main content

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.

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.

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


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

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


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

Limits and ranges of data items can be found here - https://www.microfocus.com/documentation/extend-acucobol/1050/extend-interoperability-suite/BKPPPPSPECS002.html

If you only use one data item to hold the payload then yes there is a limit. But you can use a group item with many data items to hold the payload. So the limit is not with HTTPPOST but just with how you define the data items.


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.

I don't know if you came right, but you should consider writing the data to a file and then invoking CURL (windows and Linux) to POST it.



------------------------------
Peter Clayton
Developer
Cobsolv Cc
Midrand ZA
------------------------------