27.12.2012 Views

OpenVMS System Management Techniques, Tools ... - OpenMPE

OpenVMS System Management Techniques, Tools ... - OpenMPE

OpenVMS System Management Techniques, Tools ... - OpenMPE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

sort_vms$layered.com<br />

$! SORT_VMS$LAYERED.COM<br />

$!<br />

$ set noon<br />

$ temp = f$element(0,";",f$parse(p1,f$trnlnm("startup$startup_layered"),,,"SYNTAX_ONLY"))<br />

$ temp_file = f$element(0,";",f$parse(".sorted",temp,,,"SYNTAX_ONLY"))<br />

$ fdl_spec = f$element(0,";",f$parse(".fdl",temp,,,"SYNTAX_ONLY"))<br />

$ specification_file = f$element(0,";",f$parse(".srt",f$environment("PROCEDURE"),,,"SYNTAX_ONLY"))<br />

$!<br />

$ analyze_ /rms /fdl /output='fdl_spec' 'temp'<br />

$ edit_ /fdl /nointeractive /analyze='fdl_spec' 'fdl_spec'<br />

$ create_ /fdl='fdl_spec' 'temp_file'<br />

$ sort_ 'temp' 'temp_file'/overlay -<br />

/key=(pos:1,siz:12) - ! Phase, primary indexed key<br />

/key=(pos:13,siz:1) - ! Mode, not an indexed key<br />

/key=(pos:14,siz:79) - ! File, secondary indexed key<br />

/specification='specification_file'<br />

$ rename /log 'temp_file' 'temp'<br />

$ exit<br />

• Note underscores on the four commands. This allows the command to be executed and not any global<br />

symbol that may have been defined in SYLOGIN.COM or LOGIN.COM<br />

HP World 2004 - Seminar 4063 93

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!