ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Change a cl variable to be all '*'

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

  • Change a cl variable to be all '*'

    Is there a way in CL to set the value to a variable to be all For example '*'.

    In COBOL you can set a field to all asterisks by this:

    01. FIELDA PIC X(75) VALUE ALL '*'.


    In Cl, the only way I know how to do it is

    DCL VAR(FIELDA ) TYPE(*CHAR) LEN(075) VALUE '************************************************* **************************'.


    Anyone know a shortcut similar to the COBOL assignment ?


    Thanks,
    John
    John M. Mauro
    Software Engineer
    nThrive

  • #2
    Re: Change a cl variable to be all '*'

    There is no way in CLLE.
    Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

    Comment


    • #3
      Re: Change a cl variable to be all '*'

      Originally posted by deadmanwalks View Post
      there is no way in clle.
      ty
      John M. Mauro
      Software Engineer
      nThrive

      Comment

      Working...
      X