Limit on length of string returned from GETARG?

Limit on length of string returned from GETARG?

Is there a maximum length of the character variable "buffer" in the intrinsic routine GETARG?

CALL GETARG(n,buffer[,status])

I am making a call with the variable "buffer" defined with len=255.  When I try to get an argument with > 133 characters, I only get the first 133.  The return value of staus is 133.

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

I can't reproduce this - I just tried an argument of 140 characters and got all 140. I looked at the code for GETARG and saw nothing that limits the length.

Retired 12/31/2016

Oops.  User error.  A space snuck into my long command line argument, which of course made it two arguments.

Leave a Comment

Please sign in to add a comment. Not a member? Join today