Skip to main content

State of a push button in Dialog system in the cobol program?

  • March 6, 2023
  • 2 replies
  • 0 views

Claude Greiner

in the ds-cpy i found a value of a push-button

03 PB-STOP PIC 9(8) COMP-X VALUE 6.

in dialog system i can do any function at example "button-selectec"

Is it possible to set the state or get the state of the buttion directly in the cobol progrram without calling dialog system?

Thanks for help!

2 replies

Claude Greiner
  • Author
  • Participating Frequently
  • March 6, 2023

in the ds-cpy i found a value of a push-button

03 PB-STOP PIC 9(8) COMP-X VALUE 6.

in dialog system i can do any function at example "button-selectec"

Is it possible to set the state or get the state of the buttion directly in the cobol progrram without calling dialog system?

Thanks for help!

move 1 value1

get-button-state pb-stop value1 or set-button-state pb-stop value1 don't work in cobol program, only in ds


Chris Glazier
Forum|alt.badge.img+2

move 1 value1

get-button-state pb-stop value1 or set-button-state pb-stop value1 don't work in cobol program, only in ds

I am not sure I understand exactly what you are asking. Dialog System handles all of the screen I-O functionality. You could create a procedure in your Dialog System code that can be called from COBOL, that executes the get and set button-state functions and then sets or reads a flag data item from the data-block and then does a RETC to your program. 

If this is not what you are looking foir then please provide more detail on what it is you are trying to accomplish?

Thanks