-
Jan 14th, 2013, 02:03 PM
#1
Thread Starter
Registered User
Output of this program
Hi,
Can someone help me with this. Explain what the following program does
$ open/read input_file 'flagfile'
$ read_iteration:
$ read/end_of_file=end_of_loop input_file current_line
$
$ size = f$length(current_line)
$ flag = f$extract(size-1,1,current_line)
$ show sym flag
$
$ jobname = f$extract(0,size-2,current_line)
$ show sym jobname
$
$ if 'flag' .eq. 1
$ then
$ @cs_progs:cs20_resubmit_job.com 'jobname'
$ endif
$
$ goto read_iteration
$ end_of_loop
Thank u in advance
-
Jan 14th, 2013, 04:26 PM
#2
Re: Output of this program
I'm not sure, it's not visual basic.net which is what this forum is. What is the language? Possibly java?
Edit-
it looks as if it reads a file. get's some properties from that file and then sets a boolean value.
-
Jan 14th, 2013, 04:45 PM
#3
Fanatic Member
Re: Output of this program
what a strange language, as above it seems to read a file but I think its also writing into it if flag = 1. but again this isnt vb.net, im not sure what it is
-
Jan 14th, 2013, 04:50 PM
#4
Re: Output of this program
That's the command language used on VMS systems such as HP OpenVMS, which is a Perl like command line language.
It opens a file, named "flagfile" and reads it line by line parsing out two strings from it (named flag and jobname) and displays it in the console window.
If part of the string, in the program called 'flag' is equal to 1 it runs another command line program and passing the 'jobname' string.
This has absolutely nothing to do with VB.Net so I'm moving this thread to the General Developer forum.
Last edited by Joacim Andersson; Jan 14th, 2013 at 04:56 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|