Menu

Messing with screen section and pictures

HashDG
2022-10-30
2022-10-31
  • HashDG

    HashDG - 2022-10-30

    Hello,
    I tried to use the Screen Section, with B picture. Using the following code and compiling using the command cobc -free -x -o test test.cob and executing the code ./test.

    DATA DIVISION.
        SCREEN SECTION.
            01 AFFICHAGE.
                02 LINE 1 COL 1 PIC XBXBXBXBXBXBXBXBXBX VALUE "~~~~~~~~~~".
    PROCEDURE DIVISION.
        DISPLAY AFFICHAGE.
        STOP RUN.
    

    Following docs, B is blank and X is alphanumeric. But it only prints the raw string without inserting spaces. How can I print the tildes with spaces in between ?

    Thanks for your answers !

    Damay--Glorieux.

     
  • Mickey White

    Mickey White - 2022-10-31

    Have you tried to print LINE ? It has the pic string... I would guess the AFFICHAGE is just display item? But I have not not much with Screens.....

     

Anonymous
Anonymous

Add attachments
Cancel