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

INSPECT, TALLYING and then REPLACING


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
maxsubrat

Active User


Joined: 27 Feb 2008
Posts: 110
Location: india

PostPosted: Thu Mar 11, 2010 11:38 am
Reply with quote

Hi i have a requirement like:

data : CCYYMMDDHHMMSSXXXXXX

i want to use inspect when this data 'CCYYMMDDHHMMSSXXXXXX' found then i need to replace it with current time stamp in my cobol program..

Please help me out..
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 11, 2010 11:48 am
Reply with quote

Hello,

Is the value always in the same data position? Can the value occur multiple times in a record?

If the data position can vary, i'd use a loop and reference modification rather than INSPECT.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Finding record and replacing with val... DFSORT/ICETOOL 3
No new posts Replacing character string in file th... JCL & VSAM 9
No new posts Replacing PDSMAN with PDSFAST JCL & VSAM 10
No new posts JCL for replacing code in Cobol JCL & VSAM 7
Search our Forums:

Back to Top