Get-string-n method (object method), Explanation, Syntax – FUJITSU J Adapter Class Generator User Manual

Page 64: Parameter and return value, Get-string-length-x method (object method)

Advertising
background image

64 Chapter 5. Adapter Class Reference

GET-STRING-N method (object method)

Explanation
This method fetches the character string from the String object as a national data

item.
Syntax
INVOKE

anObject

"GET-STRING-N" RETURNING

stringValue

Parameter and return value
• anObject

Specifies the String object from which a character string is to be fetched.

• stringValue (attribute: PIC N ANY LENGTH)

Returns the character string fetched from the String object. If the specified data

item is shorter than the fetched character string, it is truncated. If the specified

data item is longer than the fetched character string, the trailing area is padded

with blanks.

GET-STRING-LENGTH-X method (object method)

Explanation
This method returns the length of the character string of the String object as the

length (number of characters) of the alphanumeric data item.
Syntax
INVOKE

anObject

"GET-STRING-LENGTH-X" RETURNING

stringLength

Parameter and return value
• anObject

Specifies the String object whose character length is to be checked.

• stringLength (attribute: PIC S9(9) COMP-5)

Returns character string length.

Advertising