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
    11,711

    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.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

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

    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
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    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
  •  



Click Here to Expand Forum to Full Width