As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at firstname.lastname@example.org and provide your corporate email address, company, and name.
yes, do what Carolyn says below. make OLDSTATE your &VAR DEFINE FILE whatever NEWSTATE/A2=UPCASE(2,&STATE,'A2'); END ..then in your heading "STATE = [NEWSTATE" (that [ mark is really left pointed bracket, but this board wont accept them. ok?) see, that lpbracket means get the value from the data. sometimes you need to make the variable a byfield with noprint (BY NEWSTATE NOPRINT) but in this case since its the state value in your extract, you might not need to make it a BY field.
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Thanks for the response. That can work but I don't know how the code works (see below for actual code snippet). For example, it appears that the where command and the input prompt are contained in the same where command. How could I modify the code to put the 'newstate' code in? NEWSTATE/A2=UPCASE(2,OLDSTATE,'A2');