I have a requirement to pick up server URL according to the region in which my CICS program is executing.
The region can be picked up using APPLID but my client neither want me to hardcode the server URL in the program nor they want me to allocate and read files in which URL's are stored. Is there any alternative through which i can make accomplish this task?
1. Hardcode the URL in the program.
2. Place the URL in a file and read the file.
There is not really any other good place to store such data. There is no magical memory bucket where you can place things for later use. If your client doesn't want them hardcoded, and doesn't want them in a file, find out from the client where to store them -- or go back to the client and state that what they want cannot be accomplished in the way they want it done.
Things have to be placed in a TSQ before they can be read from a TSQ. That could be done via a PLT program during CICS start up, but the URL data would still have to be hardcoded in the PLT program. The bottom line: as enrico implies, the requirement is complete and total nonsense and somebody should be pointing that out to the client.
Joined: 29 Oct 2010 Posts: 110 Location: Puerto Rico
Good day to all!
From what I understand is that your application will get the URL from a terminal user and that your application will write it to a TSQ. This will avoid having a hard code URL in the program or reading the URL from some file. If this is not what client wants then get out your magic wand to do the trick.