Creating a resource object
When you create a resource object you create a representation of the actual CICS® resource (such as a file or program). You do not create the CICS resource; the object is the application's view of the resource. The same is true of destroying objects.
U
se an accompanying resource identification object
when creating a resource object. For example:
This allows the C++ compiler to protect you against doing something
wrong such as:
IccFileId id("XYZ123");
IccFile file(id);
IccDataQueueId id("WXYZ");
IccFile file(id); //gives error at compile time
The alternative of using the text name of the resource when creating
the object is also permitted:
IccFile file("XYZ123");