d$! DO NLINE Filename {ALL .or. Number} $! Show the Top part of a file ,$! $! In no second parameter is input, then the file is shown till $! an "end.of. info". X$! $! If the second parameter is "ALL" then the total file is shown. $! $! If the second parameter is a Number, then that number of lines $! is shown. L$! $! end.of.info $ x$ on error then goto err $ on control then goto err @$ open/read file 'p1 $ if(p2.eqs."ALL" ) then goto all $ if(p2.nes."" ) then goto num l$ $infagn: 4$ read/end=eof file line $ if( 'f$locate("END.OF.INFO",line).ne.'f$length(line)) then goto eof $ if( 'f$locate("end.of.info",line).ne.'f$length(line)) then goto eof ` $ $write sys$output line ( $ goto infagn $ $all: T $ read/end=eof file line $ write sys$output line  $ goto all $ $num: H $ $ numlin = 0 $ crtflg = p2 t$ if( p2.lt.0 ) then p2 = -p2 $ <$numagn: $ read/end=eof file line $ write sys$output line h$ numlin = numlin+1 $ if(numlin.lt.p2) then goto numagn 0$ $ if( crtflg.ge.0 ) then goto eof $ numlin = 0 \$ inquire xxx "_stop" $ if( .not. xxx ) then goto numagn $$ $ $eof: P$close file $ exit $ |$err: $ close file D$ exit(2)