RPG Structure
RPG Structure is a Visual Studio Code extension to generate free-format RPG qualified data structures for IBM i.
With RPG Structure, you can quickly design structures, templates, and substructures, then export them directly into your RPGLE or SQLRPGLE code.
✨ Features
Define structure headers with:
- Name
- Type (
default , template , *auto , *var )
- Dimension
Add fields with:
- Name (required)
- Type (required, chosen from a predefined list)
- Size (required, properly formatted)
- Initialization value (optional)
Create substructures and add fields inside them.
Export your structure to the active editor at any position.
Configuration options:
- Preferred format for declarations (
Dcl-ds , dcl-ds , DCL-DS ).
- Support for templates and dimensional types.
Import structures:
- From code (cursor position).
- From the list of structures available in the source.
Field dimensions can be added independently (no longer from field creation).
🚀 How to Use
- Open a RPGLE or SQLRPGLE source in the editor.
- Click the RPG Structure icon in the Activity Bar.
- Enter your structure header information (name, type, dimension).
- Add fields and optional substructures.
- Click Insert to export the structure into your code.
⚙️ Requirements
- Visual Studio Code v1.75 or higher.
- A RPGLE or SQLRPGLE source open in the editor.
🐞 Known Issues
📝 Roadmap
- [ ] Add support for comments on structures and fields.
- [ ] Add configuration options to define the list of available data types.
📦 Version History
See the full changelog here.
Latest
1.2.2 - 2025-09-07
- Fixes: Internal changes on repository.
💬 Contributing
Issues and pull requests are welcome!
Please open an issue on GitHub with any suggestions or bug reports.
📄 License
This extension is licensed under the MIT License.
🚀 Enjoy using RPG Structure!
| |