Output of this program-VBForums
Results 1 to 4 of 4

Thread: Output of this program

  1. #1

    Thread Starter
    Registered User
    Join Date
    Jan 2013
    Posts
    2

    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

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    4,936

    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.

  3. #3
    Fanatic Member
    Join Date
    Oct 2011
    Location
    Sydney, Australia
    Posts
    603

    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

  4. #4
    Super Moderator Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,499

    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 03:56 PM.
    Joacim Andersson
    If anyone's answer has helped you, please show your appreciation by rating that answer.
    I'd rather run ScriptBrix...
    Joacim's view on stuff.

    MVP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.