ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Changing the local data area using cobol

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

  • Changing the local data area using cobol

    hi ,


    how do i change a LDA using a cobal program ....



    thanks,
    vinoth

  • #2
    Re: Changing the local data area using cobol

    First, include Local-Data in the Special-Names area:

    Code:
    configuration section.                              
      special-names.      local-data     is ld-area.
    Next, define your local data area in Working-Storage:

    Code:
    01  lda-area.                              
        05  my-data         pic x(1024).
    Retrieve the *LDA:

    Code:
    accept lda-area from ld-area
    Change the *LDA:

    Code:
    move 'TESTING'    to my-data
    display lda-area upon ld-area
    Hope this helps...

    Terry

    Comment

    Working...
    X