|
View previous topic :: View next topic
|
| Author |
Message |
amar naik
New User
Joined: 29 Aug 2007 Posts: 8 Location: NY
|
|
|
|
I have defined a variable in my easyretrieve program
| Code: |
DEFINE TEMPOR W 80 A VALUE ' FILE EMPTY-INSERTED BY +
TST TEAM DATE: 09/20/2007'
|
the date that is mentioned is hard coded. I want to insert the date at run time in the variable TEMPOR
I get the current system date by using below code.
| Code: |
DEFINE CURRENT-DATE W 10 A
DEFINE CURRENT-MM CURRENT-DATE 02 A
DEFINE CURRENT-DD CURRENT-DATE +3 02 A
DEFINE CURRENT-YY CURRENT-DATE +6 04 A
JOB INPUT NULL
CURRENT-DATE = SYSDATE
DISPLAY 'CURRENT-DATE' CURRENT-DATE
|
before i write the 'TEMPOR' variable to the file i want it to have the system date embedded. how do i do it? |
|
| Back to top |
|
 |
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
| Cant you split the TEMPOR into different fields and move the date ? |
|
| Back to top |
|
 |
amar naik
New User
Joined: 29 Aug 2007 Posts: 8 Location: NY
|
|
|
|
i am working on it. thought somebody might have a better idea  |
|
| Back to top |
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
| Are you planning on continuing this topic at this site or are you going to continue it at both sites. |
|
| Back to top |
|
 |
amar naik
New User
Joined: 29 Aug 2007 Posts: 8 Location: NY
|
|
|
|
both sites..  |
|
| Back to top |
|
 |
CICS Guy
Senior Member

Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
| CraigG wrote: |
| Are you planning on continuing this topic at this site or are you going to continue it at both sites. |
Aw, Craig, did you have to tell....... |
|
| Back to top |
|
 |
|
|