BookmarkSubscribeRSS Feed
hcbn
Obsidian | Level 7

Hello

I have a question.

 

If the value is equal to 12 then I need to divide the qty column to the EOQ column. The result will be spreading in the requested output until the total is 12. If the value less than 12 then I will keep it as it is.

 

Input 
qtyEOQ
124
04
04
04
04
04
04
04
44
04
04
04
24
04
04
124
04
04
04
04
04
04
0

4

 

 

Output  
qtyEOQRequested Output
1243
043
043
043
040
040
040
040
444
040
040
040
242
040
040
1243
043
043
043
040
040
040
040
3 REPLIES 3
hcbn
Obsidian | Level 7

@PeterClemmensen  it was a mistake. I was trying to ask my question to new learners platform. I will be careful next time.

 

I can't see your reply. Please, share the correct link 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1197 views
  • 0 likes
  • 2 in conversation