Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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. UTC Timestamp Log Thangavel COBOL Programming 5 Mon Jan 22, 2018 9:04 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Comparision with current time arunsoods DFSORT/ICETOOL 5 Thu Nov 09, 2017 10:37 am
This topic is locked: you cannot edit posts or make replies. Comparing current time with the time ... arunsoods SYNCSORT 1 Mon Oct 30, 2017 4:07 pm
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us