how to declare a standalone field of 32000 bytes or more in RPGLE?

620 pts.
Tags:
as/400 data
how to declare a standalone field of 32000 bytes in RPGLE? It is showing only 1024-bytes(in debug). Is there any restriction on length in RPGLE or FREE-FORMAT RPG? pls. let me know. Thanks in advacne.

Software/Hardware used:
AS/400, OS/400, RPGILE, Free-Format RPG

Answer Wiki

Thanks. We'll let you know when a new response is added.

You can define a feild just as you regular would up to 32,767 in lenght.

When running in debug it will only show you the first 1024 bytes. You have to manually override that to see more information in debug. Not sure which debug you are using here is an exmaple of green screen command in debug:

<b>eval Field:C 2000</b> Will show you the first 2000 bytes of the field in character form.
<b>eval Field:X 2000</b> Will show you the first 2000 bytes in hex form.

Of course you can increase the size of the number to display more data.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following