Results 1 to 4 of 4
  1. #1

    Thread Starter
    Registered User
    Join Date
    Jan 2013

    Output of this program


    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
    South Louisiana

    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?


    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
    Sydney, Australia

    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

    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.


Posting Permissions

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


Click Here to Expand Forum to Full Width

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.