You can change an existing script by adding new lines.
update script qstatus "set registration open" line=7
The
QSTATUS script is updated to contain the following lines: 001 /* This is the QSTATUS script */
005 QUERY STATUS
007 SET REGISTRATION OPEN
010 QUERY STGPOOL
015 QUERY SESSION