DATA Step, Macro, Functions and more

Unclosed do block

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 13
Accepted Solution

Unclosed do block

I am trying to create an array. However, I am continuously getting this error message. Please advise.


array new_diag_code(9) new_diag_cd1-new_diag_cd9;

do i=1 to 9;

ERROR 117-185: There was 1 unclosed DO block.


Accepted Solutions
Solution
‎11-26-2014 07:44 PM
Trusted Advisor
Posts: 1,137

Re: Unclosed do block

Posted in reply to sanketshah07

Always do loops statement ends with END statement. something like below

array new_diag_code(9) new_diag_cd1-new_diag_cd9;

do i=1 to 9;

End;

Thanks,
Jag

View solution in original post


All Replies
Solution
‎11-26-2014 07:44 PM
Trusted Advisor
Posts: 1,137

Re: Unclosed do block

Posted in reply to sanketshah07

Always do loops statement ends with END statement. something like below

array new_diag_code(9) new_diag_cd1-new_diag_cd9;

do i=1 to 9;

End;

Thanks,
Jag
Occasional Contributor
Posts: 13

Re: Unclosed do block

Posted in reply to Jagadishkatam

Thank you. This helped me solve the problem.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 1994 views
  • 0 likes
  • 2 in conversation