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
 

 

Regarding current timestamp

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
niharika19

New User


Joined: 23 Nov 2005
Posts: 3

PostPosted: Wed Jul 05, 2006 5:32 pm    Post subject: Regarding current timestamp
Reply with quote

Hi ALL,

i HAVE OPEN ONE FILE IN IN INPUT-OUTPUT MODE. IT IS READIND AS WELL AS ONE IT'S FEILD IS REWRITTEN WHICH IS THE TIMESTAMP FEILD. AFTER ONE READ IT WILL GO TO OPEN CURSOR, FETCH CURSOR CHECKING SOME CONDITIONS AND ACCORDING TO THAT INSERTING SOME VALUES.. NOW, WHEN THE THIS IS A LAST READ... I want to rewrite the timestamp....... what is the code for this? icon_cry.gif
Back to top
View user's profile Send private message

rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Thu Jul 06, 2006 3:02 pm    Post subject:
Reply with quote

Niharika,

IF you want to reewrite the record after reaching the end of the file/end of cursor (presuming you are using db2). check for the sql condition of the cursor i.e 100 the rewrite your rec with timestamp .
if it is file use code 10 then rewrite the record..

hope this helps

regards
jai
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts Converting EBCDIC to Unicode (TimeStamp) muralikrishnan_new COBOL Programming 2 Mon Jul 25, 2016 10:42 pm
No new posts Convert Timestamp Value mrdinesh DFSORT/ICETOOL 7 Thu May 05, 2016 6:01 pm
No new posts Retrieve current year or month using ... vnktrrd DFSORT/ICETOOL 15 Tue Mar 15, 2016 4:14 pm
No new posts Comparing timestamp in Synscort l.nethaji SYNCSORT 13 Wed Jan 20, 2016 4:47 pm


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