Skip to Content
author's profile photo Former Member
Former Member

Read field from Job Server file in Script and assign $GV

Hi All,

I have a .txt file stored on the job server with appropriate permissions.

I want to read it in a script and assign the values in Field1 to a $GV. Does anyone know how I can do that?

I also want to be able to update the values of the "Field1" via a script as well.

Your help will be appreciated!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on May 12, 2015 at 07:16 AM

    Hey Ratu,

    maybe you could use EXEC, to execute a batch script, which open the file and read its content.

    In the past I use a CONFIG table in the database to do this. To access the database you could use the sql() function.

    Regards

    Severin

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Severin.....

      Actually i was able use the lookup_ext function to read the data off the .txt file and assign it to a $GV. However, updating the text file from a script was challenging, so I just used a small dataflow to do that.

      Thanks for you comment though!

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.