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

EZT to update a file with the current date


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

New User


Joined: 07 Dec 2009
Posts: 18
Location: mumbai

PostPosted: Mon Feb 01, 2010 4:23 pm
Reply with quote

Hi,

I have a file which contains the date in the format YYYYMMDD.
I need to update this file with the current date.
Could you please help me to do this through a ezytrieve pgm.

Thanks,
Shruti
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Feb 01, 2010 4:45 pm
Reply with quote

SYSDATE is the ezt current date. In EZTPOPT is the lay-out defined (e.g. yyyymmdd). So you have to ask your ezt support how EZTPOPT parameters looks like.
Back to top
View user's profile Send private message
medhachaudhari

New User


Joined: 07 Dec 2009
Posts: 18
Location: mumbai

PostPosted: Mon Feb 01, 2010 4:51 pm
Reply with quote

Thanks.. we use the program, EZTPA00.
I am not sure about the format of the date.
Do you have a sample program which updates the file with the date.
Back to top
View user's profile Send private message
ankit9jain

New User


Joined: 20 Jan 2009
Posts: 17
Location: India

PostPosted: Mon Feb 01, 2010 5:14 pm
Reply with quote

Hi,

Please refer to Advantage CA-Easytrieve Plus Report Generator Application Guide 6.4, Appendix D and E.

I hope you will get the answer
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Feb 01, 2010 5:19 pm
Reply with quote

EZTPOPT contains the EZTPA00 options, so the people that installed
the product could tell you about the SYSDATE lay-out.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Feb 01, 2010 5:40 pm
Reply with quote

I used the following job to list the option table :

Code:

//userid   JOB 01,MSGCLASS=G,CLASS=D,NOTIFY=userid                      00001003
//STEP0001 EXEC  PGM=EZTPA00                                            00020003
//SYSPRINT DD  SYSOUT=*                                                 00160000
//SYSUDUMP DD  SYSOUT=*                                                 00170000
//SYSIN    DD  *                                                        00390000
LIST OFF                                                                00400000
PARM DEBUG(NOXREF) LIST (  FILE NOPARM)                                 00470000
*                                                                       00480000
FILE DUMMY                                                              00481000
*                                                                       00482000
WOPT   W    80 A OCCURS 80 INDEX(WINDEX)                                00490001
*                                                                       00860000
JOB INPUT(NULL)                                                         00870000
CALL EZTPX05 USING(WOPT)                                                00871001
WINDEX = 0                                                              00880001
DO WHILE WINDEX < 6400                                                  00890001
   DISPLAY WOPT                                                         00900001
   WINDEX = WINDEX + 80                                                 00910001
END-DO                                                                  00920001
STOP                 
Back to top
View user's profile Send private message
ankit9jain

New User


Joined: 20 Jan 2009
Posts: 17
Location: India

PostPosted: Mon Feb 01, 2010 6:07 pm
Reply with quote

Hi,

Google Easytrieve tutorial or manual, you will get it
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Feb 01, 2010 6:10 pm
Reply with quote

ankit9jain wrote:
Hi,

Google Easytrieve tutorial or manual, you will get it


That your input?
He got it already, and googling for this stuff means you have to know
what for to google.
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 FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top