Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dlw_primus with upi/transactionid #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

congminh6
Copy link
Collaborator

Updated with the user/transaction id

Copy link
Collaborator

@randrescastaneda randrescastaneda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conditions should go in compound double quotes to avoid issues later on. See here: https://www.stata.com/meeting/5uk/program/quotes1.html

Best,

@@ -48,7 +54,7 @@ program define dlw_primus, rclass
error 1
}
} // dta type
else if "`=lower(`dlibType')'"=="do" { // only one file matched/subscribed - load the file
else if "`=lower("`dlibType'")'"=="do" { // only one file matched/subscribed - load the file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is prompt to errors. It is better to use double compound quotes. Like the following

``"=lower("dlibType'")'"'==`"dta"' ` // (there is an extra (`) in this code because of the formatting, but it should not go there).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants