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
This topic is locked: you cannot edit posts or make replies. Construct new record using specific f... DFSORT/ICETOOL 6
No new posts Count the number of characters in a f... CA Products 1
No new posts Split large FB file based on Key coun... DFSORT/ICETOOL 4
No new posts SMF Record Date conversion failing CLIST & REXX 1
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
Search our Forums:

Back to Top