You can't run Excel on the Mainframe and to code something there would increase in complexity each time the user required more Excel-like functionality. It would be a variation of reinventing-the-wheel, which is something to avoid.
You have a user using Excel, the information is required in an IMS database on the Mainframe. By far the most sensible thing to do would be to provide something to link the two together, allowing the user to continue with Excel but with a customisation (for that specific Excel application) to connect to the IMS database and use it, even for update.
How you go about this depends on what you have at your site already with which you can do this. Here's an article from the Mainframe Edition of IBMSystems Magazine: http://www.ibmsystemsmag.com/mainframe/administrator/ims/imstm_integration/
Here is an extract from the article, showing you some groups of options to do this. Within the groups, there would be specific ways to apply each option. Under RYO, of course, there are a plethora of highly-customised possibilities:
- Java EE Connector Architecture (JCA)
A Java-based technology solution for connecting application servers
and enterprise information systems (EIS), with a standard set of
system-level contracts between the Java EE application server and a
resource adapter that manage the connection, transactions, security,
work, life cycle, transaction inflow and message inflow.
You have an existing Java EE server or one of the IBM servers that
needs access to IMS.
Primary use is direct synchronous IMS access.
- Simple Object Access Protocol (SOAP)
A protocol that allows heterogeneous applications to discover and
communicate with each other in a platform- and language-independent
way.
You need to interact with partners or applications that require the
SOAP protocol.
Primary use is synchronous IMS access.
- Representational State Transfer (REST)
A protocol for simple Web services and efficient exchanges of data
through stateless applications, used in conjunction with JavaScript
Object Notation (JSON), a lightweight data-interchange format. JSON
and REST are often used in mobile applications, mashup tools or
automated business processes.
You need mobile solutions.
- Java Message Services (JMS)
An asynchronous-based messaging interface for exchanging of data
between computers using messaging services in support of Java
programs.
You have existing Java applications.
You are using a Java EE/JMS-based application server.
Primary use is asynchronous IMS access.
- Roll-your-own (RYO)
An approach often used when the organization already has its own
implementations of solutions that handle the transactions, security
and message flow.
You have an existing in-house server that needs a simple API to
connect to IMS.
You need to go back to the designer, and they need to go to your Technical Support to find out what is already available for this type of connection. If there is nothing, then someone will have to do a technical review of what is available from various providers. A favourite search-engine will give hits of who those providers are.