Stacking CP Commands in the PROFILE EXEC
If you want to automate the IPL of the VSE virtual machine after
increasing the virtual storage or changing the virtual machine type,
a special technique must be used. This is necessary because changing
the virtual storage size or virtual machine mode causes the system
to be reset. Once one of these commands is issued, the rest of the
EXEC will never be executed. The following example stacks the CP commands
so that they are issued one after the other.
/* Example of stacking CP commands in an EXEC */
nl = '15'
mach = 'CP SET MACH ESA'
stor = 'CP DEF STOR 64M'
term = 'CP TERM CONMODE 3270 BREAKIN MIN'
ipl = 'CP IPL 240 CLEAR'
cpcom = mach || nl || stor || nl || term || nl || ipl
address command cpcom
exit rc