As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Sudoku data

From sasCommunity
Jump to: navigation, search


Some data for use when playing with the solvers.

SAS Code

data sasuser.sudokus (keep=id puzzleString);
  input (part1-part10) ($CHAR30. /);
  if part10 ne '#' then do;
    put "ERROR: Check alignment";
    stop;
  end;
  id + 1;
  length puzzleString $81;
  puzzleString =
  compress (
     part1 || part2 || part3 
  || part4 || part5 || part6 
  || part7 || part8 || part9
  )
  ;
datalines;
4....283.
.8.1.4..2
7.6.8.5..
1....7.5.
27.5...19
.3.94...6
..8.9.7.5
3..8.6.9.
.427....3
#
..2...3..
.79....6.
..417...8
..8....4.
..532....
91...65..
.5..1.2..
8..7.24.3
7..6.3...
#
9 . 5 . 6 . . . .
. . . . . 5 8 . 6
. . . . . 4 . 5 9
. . . . 5 1 3 4 .
. . 2 . . . 6 . .
. 7 4 6 2 . . . .
3 5 . 1 . . . . .
8 . 9 3 . . . . .
. . . . 8 . 7 . 4
#
.........
.4.1.6.9.
.7.3.9.8.
.13...75.
7..5.1..8
5.......6
6.......1
.52...84.
3..9.2..5
#
.........
.4.1.6.9.
.7.3.9.8.
.13...75.
7..5.1..8
5.......6
6.......1
.52...84.
3..9.4..5
#
123......
...12....
......12.
.12......
....12...
.......12
..12.....
.....12..
2.......1
#
.7...9...
539.7..2.
...2.3..4
..3....1.
.85.2...6
6..5...8.
1..9.4.3.
.5.....7.
..2.1....
#
.......12
....35...
...6...7.
7.....3..
...4..8..
1........
...12....
.8.....4.
.5....6..
#
run;