Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

CL Data Structures

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CL Data Structures

    I have the following variables declared in my CL program:
     Pgm (&OPT) Dcl &OPT *char 4 dcl &OPTpost *char 1 stg(*defined) defvar(&OPT 1) dcl &OPTE *char 1 stg(*defined) defvar(&OPT 2) dcl &OPTS *char 1 stg(*defined) defvar(&OPT 3) dcl &OPTD *char 1 stg(*defined) defvar(&OPT 4) 
    If the value of &OPT is 'NYY ' (blank at the end), should not the values of &OPTPost, &OPTE, &OPTS, &OPTD, be 'N', 'Y', 'Y', and ' ' respectively? All four are 'N'. Does that seem right? What am I not understanding?

  • #2
    CL Data Structures

    I see nothing wrong compared to the manual and Ted Holt's article on v5r4 CL enhancements, although he uses type() and len() keywords and the manual uses the positional syntax that you are. I would shake things up like screwing around with the lengths and starting positions to see what you get. rd

    Comment

    Working...
    X