Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

EZT to update a file with the current date

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: EZT to update a file with the current date
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: 2433
Location: Netherlands, Amstelveen

PostPosted: Mon Feb 01, 2010 4:45 pm    Post subject:
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    Post subject:
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    Post subject:
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: 2433
Location: Netherlands, Amstelveen

PostPosted: Mon Feb 01, 2010 5:19 pm    Post subject:
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: 2433
Location: Netherlands, Amstelveen

PostPosted: Mon Feb 01, 2010 5:40 pm    Post subject:
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    Post subject:
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: 2433
Location: Netherlands, Amstelveen

PostPosted: Mon Feb 01, 2010 6:10 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us