BookmarkSubscribeRSS Feed
Ramya2
Calcite | Level 5

Hi All,

 

Greetings for the Day..!!!

 

I have below set of datasets

 

Enrollment:

111

222

333

444

555

666

777

888

999

000

 

Where Enrollment is a Base for all demog and ipadmin datsets

demog:

 

111 ramya

222 prathic

777 pavan

444 stephan

555 ram

666 kavb

888 tiny

999 donn

000 raky

 

ipadmin:

 

111 ramya

111 ravi

111 Karan

222 nicole

222 sipho

222 cheryl

222 yong

222 asturd

 

Now I want from enrollemnt ,3 subjects to be picked each time. and  the subsequent demog and ipadmin also should run. with a separate log and sleeping time of 1 mints in each iteration.

 

Output is :

1st oteration:

demog:

111 ramya

222 prathic

ipadmin:

111 ramya

111 ravi

111 Karan

222 nicole

222 sipho

222 cheryl

222 yong

222 asturd

 

CREATE LOG AND SLEEP 1 MINUTES

 

2nd iteration:

demog:

444 stephan

555 ram

666 kavb

ipadmin:

"No matching subject to print"

 

CREATE  LOG AND SLEEP 1 MINUTES

 

Please help me.

 

Note: this is just an requiremnt draft , Where I need to impliment mmy logic. In my code the subjects and the data are huge. So created an example.

 

 

5 REPLIES 5
Ramya2
Calcite | Level 5
and iteration should continue till it reaches enrollment "000"
ChrisNZ
Tourmaline | Level 20

> Now I want from enrollemnt ,3 subjects to be picked each time

 

I don't see the 3 subjects

Ramya2
Calcite | Level 5
First 3 subjects. that is 111,222,333
Quentin
Super User

Did my answer to your question a couple days ago help, with an approach to log splitting?  

https://communities.sas.com/t5/SAS-Programming/Splitting-log-and-executing-a-set-of-subjects-togethe...

 

I don't think this new question is clear enough for me to add much more.  

BASUG is hosting free webinars Next up: Mark Keintz presenting History Carried Forward, Future Carried Back: Mixing Time Series of Differing Frequencies on May 8. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.
Patrick
Opal | Level 21

@Ramya2 

Looks to me @Quentin provided you already with an approach. ....but why would you do that in first place? In case something goes wrong in one of the iterations then you'd have to find the appropriate log to investigate. That's going to make debugging really hard.

 

If you have SAS/Connect licensed then an alternative would be to run child processes (rsubmit) per group. This would allow to have separate logs per execution but also have a collective log which gives you sufficient information about the whole process.

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
  • 5 replies
  • 799 views
  • 0 likes
  • 4 in conversation