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

Find a record count/numeric is multiples of 100 or not


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

New User


Joined: 20 Sep 2022
Posts: 3
Location: USA

PostPosted: Thu Sep 22, 2022 12:27 am
Reply with quote

Hi,

I have a requirement to find my record count is multiple of 100 or not.

Exact requirement:
I need to write word 'COMMIT' in my output file after my every 100/200/300th record of input file write. I am going to divide my record read count by 100 and get remainder. But how to check my remainder is whole number or not?

For ex., I do this for every record. When i read my 1000th line input i will do 1000/100=10.. i want to check whether 10 is whole number (not decimal). But how to check that?

Please suggest an idea.
Back to top
View user's profile Send private message
kanipriya

New User


Joined: 20 Sep 2022
Posts: 3
Location: USA

PostPosted: Thu Sep 22, 2022 12:36 am
Reply with quote

Please ignore this post. Sorry for the inconvenience.
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 Copy only TEXT or String from a record SYNCSORT 4
No new posts combine multiple unique records into ... DFSORT/ICETOOL 2
No new posts SORT on detail record, then repeat he... DFSORT/ICETOOL 3
No new posts how to complete the end of a record w... DFSORT/ICETOOL 2
No new posts Sort based on the record type DFSORT/ICETOOL 1
Search our Forums:

Back to Top