Skip to content

GITHUB COPILOT #288841

@EtiAI

Description

@EtiAI

Type: Bug

Hello
My name is Esther Mano Itkin from Israel
how can i contact GITHUB in order to ask them to do feature that will help us in As400
I have user EtiAi in GITHUB
Can you help with this

Feature Request – IBM i (AS/400) aware COBOL + Embedded SQL
When using GitHub Copilot in VS Code with Code for IBM i extension,
Copilot should detect IBM i environment and generate ILE COBOL code compatible with DB2 for i.
Requirements:
• Use EXEC SQL … END-EXEC only
• Host variables must be defined under a group
• No standalone level 01 host variables
Current suggestions generate invalid COBOL for IBM i.
Thank you. it will help us

I CAN GitHub collaborate with IBM to understand the correct COBOL syntax for the AS/400, whether it’s a standard COBOL program or an SQL COBOL program. I’d like them to work together to define the proper variable definitions and rules.

Feature Request – IBM i (AS/400) aware COBOL + Embedded SQL Support

Environment

  • VS Code with "Code for IBM i" extension
  • GitHub Copilot
  • IBM i (AS/400) with ILE COBOL and DB2 for i

Problem

When using GitHub Copilot to generate COBOL code for IBM i (AS/400),
the suggestions are often invalid for the ILE COBOL compiler.

Current Issues

  1. Host variables are generated as standalone level 01 items
  2. Missing BEGIN DECLARE SECTION / END DECLARE SECTION
  3. Incorrect syntax for DB2 for i embedded SQL

Expected Behavior

Copilot should detect IBM i environment and generate valid ILE COBOL:

Incorrect (current):

01  WS-FIELD1    PIC X(10).
01  WS-FIELD2    PIC S9(9).

Correct (expected):
EXEC SQL BEGIN DECLARE SECTION END-EXEC.
01 WS-SQL-VARS.
   02 WS-FIELD1    PIC X(10).
   02 WS-FIELD2    PIC S9(9).
EXEC SQL END DECLARE SECTION END-EXEC.

Request
Please collaborate with IBM to understand:
1.	ILE COBOL syntax rules for IBM i
2.	Embedded SQL requirements for DB2 for i
3.	Proper host variable definitions

It is important that Copilot knows how to write a program that can be compiled according to the COBOL syntax rules on the IBM i system.
Impact
This would help many IBM i developers worldwide who use AS/400 systems.

Thank you 

My mail is : [email protected]
I work for a big insurance comapany in Israel - HAREL - programming 
 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions