Modified List Input

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

Modified List Input

Please see the problem in the attached figure. The upleft code produces the upright output and the downleft code produces the downright output.

The only difference between the first code and the second code is the ampersand.

Why the width specified in the informat of the modified list input can not control the input? I expect to have the same output for these two pieces of code. But it turned out not. How to explain this?

IMG_5582.PNG

 


Accepted Solutions
Solution
‎08-31-2017 11:59 PM
PROC Star
Posts: 8,169

Re: Modified List Input

Posted in reply to honglangwang

I think your answer is in the following statement from the documentation:

 

In modified list input SAS uses the value of w in an informat to specify the length of previously undefined character variables.

 

However, in your examples, the both variables were pre-defined.

 

Art, CEO, AnalystFinder.com

 

View solution in original post


All Replies
Solution
‎08-31-2017 11:59 PM
PROC Star
Posts: 8,169

Re: Modified List Input

Posted in reply to honglangwang

I think your answer is in the following statement from the documentation:

 

In modified list input SAS uses the value of w in an informat to specify the length of previously undefined character variables.

 

However, in your examples, the both variables were pre-defined.

 

Art, CEO, AnalystFinder.com

 

New Contributor
Posts: 2

Re: Modified List Input

Thanks so much, Art! This is exactly what I am looking for!
☑ This topic is solved.

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

Discussion stats
  • 2 replies
  • 218 views
  • 1 like
  • 2 in conversation