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 How to split large record length file... DFSORT/ICETOOL 8
No new posts To get the count of rows for every 1 ... DB2 3
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
Search our Forums:

Back to Top