BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
sas_university
Obsidian | Level 7
Protcol ID/NOSite IDSubject IdDOBAcc NO.SC Date
ONC_AP/01234-1101ABC15-Jul-78234567167116/09/22
ONC_AP/01234-2102BBC21-Jun-87990069637518/09/22
ONC_AP/01234-3103BBD10-Sep-03647489376317/09/22
ONC_AP/01234-4104BAC18/08/90765322583916/09/22
ONC_AP/01234-5105ACF16/07/50643287587514/09/22
ONC_AP/01234-6101TGU16/08/55562748392019/09/22
ONC_AP/01234-7102JKL12/07/08345609834718/09/22
ONC_AP/01234-8101AFN23/02/80876523450918/09/22
ONC_AP/01234-9104SLR07/05/86564738909817/09/22
ONC_AP/01234-10105ASR19/12/83234567167118/09/22
ON1_AP/01234-210A_ABC12-Jul-78990069637519/09/22
O1C_AP/01234-2A021BC20-Jun-87647489376318/09/22
1NC_AP/01234-4#03_1BD10-Sep-03765322583919/09/22
ONC1_AP/01234-61Q4_11118/08/90643287587515/09/22
ONC_1P/01234-6ab5AC-16/07/50562748392013/09/22
ONC_A1/01234-7a@c101_TGU16/08/55345609834716/09/22
ONC-01/01234-7aaa102-JKL12/07/08876523450919/09/22
ONC_#P/01234-9a0a103@AFN23/02/80564738909815/09/22
ONC_AP*01234-10#3#102_a10-07/05/86234567167117/09/22
ONC_AP/A1234-210_ASR_10019/12/83990069637519/09/22
ONC_AP/0A234-1101-/scf15-Sep-78647489376316/09/22
ON1_AP/01A34-2106ACY21-Mar-87765322583918/09/22
O1C_AP/012A4-2107BBE10-Mar-03643287587517/09/22
1NC_AP/0123A-4108BBY18/01/90562748392016/09/22
ONC1_AP/01234_6109AAC16/02/50345609834714/09/22
ONC_1P/AABBC-6110ACH16/03/55876523450919/09/22
ONC_A1/01234-A111TIU12/12/08564738909818/09/22
ONC-01/01234$7112JLL23/10/80234567167118/09/22
ONC_AP@01234-9113CFN07/15/1986990069637517/09/22
123_01/01234-6114SCR01-Sep-78647489376318/09/22
ONC-AP/ABCDE-2115ASO02-Mar-87765322583919/09/22
ONC_AP/01234-E116ACY03-Mar-03643287587518/09/22
123_AP/01234-6117BBE04/01/90562748392019/09/22
ONC_AP/12345-C118BBY05/02/50345609834715/09/22
ON _AP/01234-5119AAC06/03/55876523450913/09/22
ONC_  /01234-4120ACH07/12/08564738909816/09/22
ONC_121TIU08/10/80562748392019/09/22
ONC_AP/122JLL09/15/1986345609834715/09/22
ONC_AP/ABC34-4123CFN17/15/1986876523450917/09/22

 This my raw data , in this data , i want find the correct protocol format  my protocol format is first letters 3 alphabets,4th position is underscore, 5th to 6th position is alphabets,7th position backward slash , after 7th to 12th position value values after 13th position '-' , 14th to 15th position  value. eg (apc_ec/01234-43), how to verify each value in  protocol variable , anyone can please me .

1 ACCEPTED SOLUTION

Accepted Solutions
HB
Barite | Level 11 HB
Barite | Level 11

Sounds like a job for a regular expression. 

 

 

[rest of response deleted]

View solution in original post

3 REPLIES 3
HB
Barite | Level 11 HB
Barite | Level 11

Sounds like a job for a regular expression. 

 

 

[rest of response deleted]

HB
Barite | Level 11 HB
Barite | Level 11

I hate that.  So somebody got a homework assignment or a job contract someplace and posted the same issue multiple times.  I think I'll delete my response. 

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 426 views
  • 0 likes
  • 3 in conversation