home *** CD-ROM | disk | FTP | other *** search
- /* Simple File Request Generation Program */
-
- options results
-
- Outbound = 'Welmat:outbound/'
-
- parse upper arg net'/'node wantfile
-
- reqname = upper(outbound||right(d2x(net),4,"0") ,
- ||right(d2x(NODE),4,"0")||".REQ")
-
- x=Open('reqfile',reqname,'A')
- if x=0 then do
- x=Open('reqfile',reqname,'W')
- if x=0 then do
- say "Error opening" reqname
- Exit 1
- end
- end
- call WriteLN('reqfile', strip(wantfile))
- x=Close('reqfile')
-