First time here?
Back again?


 
 

Is there any way to have the post prompt me for information at runtime?

CATEGORY: PROGRAMMING
TYPE: MACRO
IMS VERSION: ALL
PLATFORM: ALL

The IMSpost has macro language commands that make it possible to get information interactively at any point in the postprocessing of a file. There are two commands that are usually used together, PRINT and DISPLAY.
For the example of outputting a program number in the P register, enter the following lines in the INIT_CFG macro:
PRINT("Please enter the program number")
DISPLAY(PROGNUM)
OUTPUT('P', PROGNUM, NEWLIN)
The PRINT command specifies the text for the user prompt.
The DISPLAY statement specifies the name of an IMSpost variable to receive the input value entered by the user.
The variable then may be used as any other IMSpost macro variable

Back to Frequently Asked Questions