BookmarkSubscribeRSS Feed
Seb_A_Sanders
Calcite | Level 5

Hi,

 

I have code that creates financial batch files that distribute funds from an external party. They have recently levied a 40p (or cent if this helps clarify) charge per transfer. They send a transfer that is then broken down into several accounts, Obviously this works fine for any even number up to 40, however, any time the number of accounts is odd, then the split won't be to a round pence.

 

Any ideas how I can include this kind of logic?

 

Thanks for any help!

1 REPLY 1
Astounding
PROC Star

You need to do more planning, before any programming can take place.

 

Why would 6 accounts be able to evenly split 40p?

 

What would be a fair result?

 

Those aren't programming questions, they're planning questions.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 366 views
  • 2 likes
  • 2 in conversation