I just built a simple job stream that did, what I think you were asking, and it worked okay.
here it is:
!job test,user.account
!purge datefile
!build datefile;rec=-18,,f,ascii;disc=1
!file df=datefile,old;acc=append
!echo !hpdatetime >*df
!input datef < datefile
!echo !datef
!# extracting only the 'yyyymmdd' from the string
!setvar mydate str(datef,1,8)
!showvar mydate
!eof
-----Original Message-----
From: Edward Givens [mailto:[log in to unmask]]
Sent: Monday, February 24, 2003 1:06 PM
To: [log in to unmask]
Subject: HP CI SCRIPTING QUESTION + SUBSCRIPTION QUESTION
Hello, I was told this is the best place to go for answers so I would =
like
to know how to subscribe to the user group so I can make future =
inquiries
and possibly help others as well.
Here is the real question:
I am trying to pass a variable from a ci script to a job. The data is a =
date
e.g. 20030101 for yyyymmdd. I am using the input command to get the =
variable
then saving the variables to a PERMANENT file.=20
I then within the job want to pull the data from the files back into
variables so I can use the inputted data (multiple times at that).=20
It was easy to pass the variable into the file but it seems difficult to
reverse the process.
Thanks for your response in advance
Edward Givens
Lineco (Insurance)
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|