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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 3 replies
  • 609 views
  • 0 likes
  • 2 in conversation