Skip to main content

Hello,

I'm having a problem with an ACCEPT on a group item from the SCREEN SECTION.

If the SCREEN SECTION has something like:

05 SCREEN-LINE-1.

     10 S-GRAB-DATE.

           15  LINE 1 COL 10 PIC 99 USING THE-MONTH.

           15 LINE 1 COL 12  '/'.

           15 LINE 1 COL  13 PIC 99 USING THE-CC.

           15 LINE 1 COL  15 PIC 99 USING THE- YEAR.

Then in the code do:

ACCEPT S-GRAB-DATE.

I am able to edit the month field but as soon as I hit Enter the cursor does not go to the THE-CC field.

It just terminates the whole accept for that group item, instead of going to the next field within the group item.

I can TAB to the next field within the group item, but not NewLine/Enter.

This works on our AIX version of ServerExpress but not our Linux version.

Shouldn't it behave like the AIX version?

 

Hello,

I'm having a problem with an ACCEPT on a group item from the SCREEN SECTION.

If the SCREEN SECTION has something like:

05 SCREEN-LINE-1.

     10 S-GRAB-DATE.

           15  LINE 1 COL 10 PIC 99 USING THE-MONTH.

           15 LINE 1 COL 12  '/'.

           15 LINE 1 COL  13 PIC 99 USING THE-CC.

           15 LINE 1 COL  15 PIC 99 USING THE- YEAR.

Then in the code do:

ACCEPT S-GRAB-DATE.

I am able to edit the month field but as soon as I hit Enter the cursor does not go to the THE-CC field.

It just terminates the whole accept for that group item, instead of going to the next field within the group item.

I can TAB to the next field within the group item, but not NewLine/Enter.

This works on our AIX version of ServerExpress but not our Linux version.

Shouldn't it behave like the AIX version?

 

Hello,

The behavior you’ve described (the enter key moving you to the next field in a multi-field ACCEPT) is not the default behavior; one possible explanation is that someone may have customized the ACCEPT behavior or keyboard mapping on the AIX machine at some point in the past.

It's possible to customize the key mapping using a utility named "keybcf". The output of this utility is a file named "cobkeymap", which might be present in the $COBDIR directory. Please check on the AIX machine for a "cobkeymap" file. If you find one, please try copying it to the Linux machine in the equivalent location.

In the same way, there may be a file named ADISCTRL in the old $COBDIR.  This file is produced as output from the configuration utility "adiscf".  If it exists on the AIX machine in the $COBDIR directory, copy it to the Linux $COBDIR to preserve any customizations it contains.  Then please test again and let us know if this helps.


Hello,

I'm having a problem with an ACCEPT on a group item from the SCREEN SECTION.

If the SCREEN SECTION has something like:

05 SCREEN-LINE-1.

     10 S-GRAB-DATE.

           15  LINE 1 COL 10 PIC 99 USING THE-MONTH.

           15 LINE 1 COL 12  '/'.

           15 LINE 1 COL  13 PIC 99 USING THE-CC.

           15 LINE 1 COL  15 PIC 99 USING THE- YEAR.

Then in the code do:

ACCEPT S-GRAB-DATE.

I am able to edit the month field but as soon as I hit Enter the cursor does not go to the THE-CC field.

It just terminates the whole accept for that group item, instead of going to the next field within the group item.

I can TAB to the next field within the group item, but not NewLine/Enter.

This works on our AIX version of ServerExpress but not our Linux version.

Shouldn't it behave like the AIX version?

 

Blair,

That did the trick.

Thanks for your help.