I am new to Telon and IMS DC. Now I need to work on Telon, IMS DC and DB@.
My requirement is through screens program should get input and based on that it should update or retrieve information from DB2. I could see screen in Telon using panel specification option in Telon.
Please let me know what are the steps I need to do to accomplish this.
After painting screen in the Panel definition and also completing the field name and usage as Input or output or Inputoutput.
Go to data group(DG) where u can write your sql quires as
1) First insert a table in the data group using the command as DGADD tablename.D2 (you will get a message as Data group successfully updated)
2) then use a line command insert I against the created table and use either Read or update. After giving the Read write a select query by giving U against the READ.
3) After writing the query u will get the name as U-100-READ-Tablename.
Go to Custum code and create a oinit1 section.
So perform the section U-100-READ-tablename or U-100-UPDATE-tablename depending on the input from the screen.
After perform the above sections check code as
IF input filed Not = spaces
SET SUCCESSFUL-UPDATE TO TRUE
ABEND THE PROGRAM USING ABEND SECTIONJ