Declarations
  • 22 Jan 2025
  • 1 Minute à lire
  • Sombre
    Lumière
  • PDF

Declarations

  • Sombre
    Lumière
  • PDF

The content is currently unavailable in French. You are viewing the default English version.
Résumé de l’article

  • API Functions expect input strings to be zero-terminated
    • Use Format4 Z’abcd’ literal constants
    • Use STRING instruction to append binary zeroes before passing a string to the function:
      STRING I-PASSWORD DELIMITED BY SPACES X'00' DELIMITED BY SIZE INTO W-PASSWORD
  • Numbers are usually 32-bit signed integers unless differently specified
    02 W-RETURN PIC S9(8) USAGE BINARY
  • Passing parameters to the APIs
    Every time a parameter name is preceded by an asterisk in the function prototype, this means that the API expects to receive a pointer to the specified parameter, so the Cobol verb BY REFERENCE should be used.

Cet article vous a-t-il été utile ?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Ozzy, facilitant la découverte de connaissances grâce à l’intelligence conversationnelle