All,
I have a PAragraph that runs a program and feeds data into it using the DATA statement to provide input. One of my DATA statements has a pathname with an
'@DATE' in it. I.E. C:TEMPFILE@DATE.TXT. I tried C:TEMPFILE@DATA@TIME.TXT, the pathname had the current date but the '@TIME' was just '@TIME'. The documentation was pretty thin on this topic. What at variables are allowed in a DATA statement?
Jon
Page 1 / 1
All,
I have a PAragraph that runs a program and feeds data into it using the DATA statement to provide input. One of my DATA statements has a pathname with an
'@DATE' in it. I.E. C:TEMPFILE@DATE.TXT. I tried C:TEMPFILE@DATA@TIME.TXT, the pathname had the current date but the '@TIME' was just '@TIME'. The documentation was pretty thin on this topic. What at variables are allowed in a DATA statement?
Jon
I have a PAragraph that runs a program and feeds data into it using the DATA statement to provide input. One of my DATA statements has a pathname with an
'@DATE' in it. I.E. C:TEMPFILE@DATE.TXT. I tried C:TEMPFILE@DATA@TIME.TXT, the pathname had the current date but the '@TIME' was just '@TIME'. The documentation was pretty thin on this topic. What at variables are allowed in a DATA statement?
Jon
I don't even know if it will work in Unidata, but something like this may be a possible solution:
SELECT AnyFile SAMPLE 1 SAVING EVAL "'C:TEMPFILE':@DATE:@TIME:'.TXT'"
SAVE.LIST SL.REC
.
.
.
DATA <<F(SAVEDLISTS,SL.REC000,1)>>
All,
I have a PAragraph that runs a program and feeds data into it using the DATA statement to provide input. One of my DATA statements has a pathname with an
'@DATE' in it. I.E. C:TEMPFILE@DATE.TXT. I tried C:TEMPFILE@DATA@TIME.TXT, the pathname had the current date but the '@TIME' was just '@TIME'. The documentation was pretty thin on this topic. What at variables are allowed in a DATA statement?
Jon
I have a PAragraph that runs a program and feeds data into it using the DATA statement to provide input. One of my DATA statements has a pathname with an
'@DATE' in it. I.E. C:TEMPFILE@DATE.TXT. I tried C:TEMPFILE@DATA@TIME.TXT, the pathname had the current date but the '@TIME' was just '@TIME'. The documentation was pretty thin on this topic. What at variables are allowed in a DATA statement?
Jon
Thanks! It does work in UniVerse. I'm still curious what at-variables are allowed/evaluated in a DATA statement.
All,
I have a PAragraph that runs a program and feeds data into it using the DATA statement to provide input. One of my DATA statements has a pathname with an
'@DATE' in it. I.E. C:TEMPFILE@DATE.TXT. I tried C:TEMPFILE@DATA@TIME.TXT, the pathname had the current date but the '@TIME' was just '@TIME'. The documentation was pretty thin on this topic. What at variables are allowed in a DATA statement?
Jon
I have a PAragraph that runs a program and feeds data into it using the DATA statement to provide input. One of my DATA statements has a pathname with an
'@DATE' in it. I.E. C:TEMPFILE@DATE.TXT. I tried C:TEMPFILE@DATA@TIME.TXT, the pathname had the current date but the '@TIME' was just '@TIME'. The documentation was pretty thin on this topic. What at variables are allowed in a DATA statement?
Jon
Do you have a specific example of @DATE being interpreted in a DATA statement?
I just ran a simple test and whatever I put in the DATA statement such as @DATE or @TIME was being picked up literally.
I can do some research but was curious how you got @DATE to work.
Thanks,
Neil
All,
I have a PAragraph that runs a program and feeds data into it using the DATA statement to provide input. One of my DATA statements has a pathname with an
'@DATE' in it. I.E. C:TEMPFILE@DATE.TXT. I tried C:TEMPFILE@DATA@TIME.TXT, the pathname had the current date but the '@TIME' was just '@TIME'. The documentation was pretty thin on this topic. What at variables are allowed in a DATA statement?
Jon
I have a PAragraph that runs a program and feeds data into it using the DATA statement to provide input. One of my DATA statements has a pathname with an
'@DATE' in it. I.E. C:TEMPFILE@DATE.TXT. I tried C:TEMPFILE@DATA@TIME.TXT, the pathname had the current date but the '@TIME' was just '@TIME'. The documentation was pretty thin on this topic. What at variables are allowed in a DATA statement?
Jon
My bad! It appears the program I was running changes the '@DATE' in the code.
Jon
All,
I have a PAragraph that runs a program and feeds data into it using the DATA statement to provide input. One of my DATA statements has a pathname with an
'@DATE' in it. I.E. C:TEMPFILE@DATE.TXT. I tried C:TEMPFILE@DATA@TIME.TXT, the pathname had the current date but the '@TIME' was just '@TIME'. The documentation was pretty thin on this topic. What at variables are allowed in a DATA statement?
Jon
I have a PAragraph that runs a program and feeds data into it using the DATA statement to provide input. One of my DATA statements has a pathname with an
'@DATE' in it. I.E. C:TEMPFILE@DATE.TXT. I tried C:TEMPFILE@DATA@TIME.TXT, the pathname had the current date but the '@TIME' was just '@TIME'. The documentation was pretty thin on this topic. What at variables are allowed in a DATA statement?
Jon
Thanks for that update. As best as I can tell (without further research), the text supplied in a DATA statement is passed literally to the input statement.
I don't think any @variables are translated as part of a DATA statement.
Does that give you what you need?
Thanks,
Neil
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.