IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Easy retreive : inserting current date in variable


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amar naik

New User


Joined: 29 Aug 2007
Posts: 8
Location: NY

PostPosted: Fri Sep 21, 2007 1:20 am
Reply with quote

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
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Fri Sep 21, 2007 1:32 am
Reply with quote

Cant you split the TEMPOR into different fields and move the date ?
Back to top
View user's profile Send private message
amar naik

New User


Joined: 29 Aug 2007
Posts: 8
Location: NY

PostPosted: Fri Sep 21, 2007 1:35 am
Reply with quote

i am working on it. thought somebody might have a better idea icon_biggrin.gif
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Sep 21, 2007 1:42 am
Reply with quote

Are you planning on continuing this topic at this site or are you going to continue it at both sites.
Back to top
View user's profile Send private message
amar naik

New User


Joined: 29 Aug 2007
Posts: 8
Location: NY

PostPosted: Fri Sep 21, 2007 1:46 am
Reply with quote

both sites.. icon_neutral.gif
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Fri Sep 21, 2007 2:00 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top