To make this you can use the label control with the title in an HTML code.
string '<html><img src="file:' delimited by size
path-gif delimited by trailing space
'"></img></html>' delimited by size
Where "path-gif" is the path of the gif image and tit-html is the variable used for the gif's title.
Into Application/Server environment the HTML code is rendered on the client, so we need to have the gif image on the client.
To make this we can use the "C$COPY" routine to copy the image from the server to the client.
Attached below is a Cobol sample program showing the code used to create the HTML code, and instructions on how to copy the image from the server to the client.