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