Data visualization with SAS programming

ODS Graphics problem

Reply
Contributor
Posts: 28

ODS Graphics problem

Hello
I have a problem when I turn on the ODS Graphics (% sgdesign)
I'm getting message  "ODS Graphics Designer failed to connect to the  sas server on localhost" (details in attach files) and I can not edit (change) port number.


I have sas only on one machine and during installation I dont installed any items related to sas server.



Thank you very much for help and best regards.

Attachment
Attachment
SAS Super FREQ
Posts: 1,044

Re: ODS Graphics problem


This can happen sometimes due to timing issues.  When this happens, try again after a few seconds, it usually works. Smiley Happy

Occasional Contributor
Posts: 10

Re: ODS Graphics problem

I am also having this problem with the exact same messages and port. This is probably the full error message. I have been having this problem for days and it has never connected. I think it might have had something to do with the licence expiring a few days ago, but i have since renewed.

NOTE: Connect as serverAuthType:nosecurity failed!

  1. com.sas.services.connection.FatalConnectionFactoryException: The application could not log on to

the server "localhost:5310". No server is available at that port on that machine.

     at com.sas.services.connection.ClusterEnvelope.getConnection(ClusterEnvelope.java:238)

     at com.sas.services.connection.AggregationKernel.doGetConnection(AggregationKernel.java:242)

     at

  1. com.sas.services.connection.ConnectionFactoryKernel.getConnection(ConnectionFactoryKernel.java:325

)

     at

  1. com.sas.services.connection.ConnectionFactoryShell.getConnection(ConnectionFactoryShell.java:69)

     at

  1. com.sas.services.connection.ConnectionFactoryShell.getConnection(ConnectionFactoryShell.java:56)

     at com.sas.services.connection.ConnectionFactory.getConnection(ConnectionFactory.java:71)

     at com.sas.services.connection.ConnectionFactory.getConnection(ConnectionFactory.java:26)

     at com.sas.graphics.sgdesigner.Workspace.createWorkspace(Workspace.java:246)

     at com.sas.graphics.sgdesigner.SGDesigner.init(SGDesigner.java:532)

     at com.sas.graphics.sgdesigner.SGDesigner.main(SGDesigner.java:5441)

Caused by: org.omg.CORBA.COMM_FAILURE: The application could not log on to the server

"localhost:5310". No server is available at that port on that machine.  vmcid: 0x0  minor code: 1

completed: No

     at com.sas.iom.orb.brg.Engine$5.run(Engine.java:3671)

     at java.security.AccessController.doPrivileged(Native Method)

     at com.sas.iom.orb.brg.Engine.flowConnect(Engine.java:3715)

     at com.sas.iom.orb.brg.Engine.flow(Engine.java:696)

     at com.sas.iom.orb.brg.Engine.initClient(Engine.java:660)

     at com.sas.iom.orb.brg.ORBImpl.uri_to_object(ORBImpl.java:119)

     at com.sas.services.connection.ClusterEnvelope.createObject(ClusterEnvelope.java:291)

     at com.sas.services.connection.ClusterEnvelope.getConnection(ClusterEnvelope.java:76)

     ... 9 more

Caused by: java.net.ConnectException: Connection refused: connect

     at sun.nio.ch.Net.connect0(Native Method)

     at sun.nio.ch.Net.connect(Net.java:364)

     at sun.nio.ch.Net.connect(Net.java:356)

     at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:623)

     at com.sas.iom.orb.brg.Engine$5.run(Engine.java:3646)

     ... 16 more

Grand Advisor
Posts: 16,403

Re: ODS Graphics problem

What version of SAS do you have? You may want to contact Tech Support on this.

What are you trying to do as well?

Occasional Contributor
Posts: 10

Re: ODS Graphics problem

SAS 9.4 TS Level 1M1 X64_7PROplatform

windows version .1.7601

I have contacted tech support but we keep playing phone tag and I really need to work over the weekend while they are closed.

There is something about running %sgplot with a sleep function which I tried, but it did not work

Grand Advisor
Posts: 16,403

Re: ODS Graphics problem

Then perhaps what are you trying to use the SG Designer to accomplish? It generates code, but it can be done manually.

Occasional Contributor
Posts: 10

Re: ODS Graphics problem

scatter plots with overlayed regression with CIM and CLM and Case labels for each point with experimental group colorings. I'm not crazy about doing this, if I could get the code out of ODS and run it in SAS and just change things it might be worth it. I do have saved sgd or whatever files, I wonder if I could load them and pull the code from there.

Grand Advisor
Posts: 16,403

Re: ODS Graphics problem

That doesn't actually sound that difficult using standard SG code. If you have sample data I'm sure several people including me are willing to help. It may be better to post as a new question. What version of SAS do you have.

Occasional Contributor
Posts: 10

Re: ODS Graphics problem

A1gabaMax_agemonths_Regression.jpgMy data is below, I want to make graphs that look like the attached jpg.

Thanks for the help. I may start a new thread.

CaseNum is my data label

ExperimentGroup is my group

data all;

input CaseNum$ DateOfExp$ OutliersSet1$ OuliersSet2$ ExpOrder ExperimentGroup$ BirthGrp$ AgeYO$ AgeYMO$

Agemonths

mFactor1 mFactor2 mFactor3 mFactor4 mFactor5 mFactor6

Hearing_F1avg HearingF2_lowHigh HearingF3_32to16 noise noiseres noisestu

AvgHearing Khz16 Khz16res Khz16stu Khz4 Khz8 Khz32 Khz45k

Weight weightresid weightstu

CortThick_mm CrtThiStu CrtThiResid

FAD_A1 FADCA2_ratio FADCA2_ratio_resid FADhipposelect_new_ratio FAD_MGB FADMGB_res

CA1FADNAD CA1FADNAD_N CA1_Ratio_N CA2FADNAD CA2FADNAD_N CA2_ratio_N CA2_ratio_Nresid CA3BottomFADNAD CA3BottomFADNAD_N CA3Bottom_ratio UpperCA3FADNAD UpperCA3FADNAD_N A1rdxratio A1rdxratio_N A1rdxratioResid MGB_N HippocampelRatio HippocampelRatio_N hipposelect_ratio

A1Gb_NormRat A1NEC50 Ratio_N Ratio_G WidthAtEC50 RatioAVGEC50 AbsolMax AbsolMaxRes AbsolMaxstu OnRatioMax OnRatioEC50 OffRatioMax OffRatioEC50

NOnMax NOffMax NOnEC50 NOffEC50 A1normMax A1NEC502 slopeNon slopeNoff A1slopeN GOnMax GOffMax GOnEC50 GOffEC50 A1gabaMax A1GEC50 slopeGon slopeGoff A1slopeG

NUpperReal NLowerReal NUR_EC50 NLR_EC50 NUR_slope NLR_slope GUR GLR GUR_EC50 GLR_EC50 GUR_slope GLR_slope UpperInc LowerInc UppIncToLowIncRat

A1G2_N A1G2_G1 G2OnMax G2OffMax G2OnEC50 G2OffEC50 A1gaba2Max A1G2GEC50 slopeG2on slopeG2off A1slopeG2

G2URMax G2LRMax G2UR_EC50 G2LR_EC50 G2UR_slope G2LR_slope @@;

cards;

25 7_11_2012 in in 13 2 7 Young Young 4 -0.44827 -0.28978 -0.13708 -1.4685 -0.87113 0.37744 -0.34597 -1.22126 0.69029 28 3.5087 0.27513 38.375 32 8.14 0.67704 88 36 57.5 54 29.8 -2.23056 -0.47157 1.164556962 -0.88557 -0.0372 60.99329728 1.072281344 0.028403 1.058008091 67.73681592 3.1198 0.645681333 0.583866891 0.969225241 0.565729209 0.58826976 1.043928075 0.020395 0.497880501 0.562281723 1.051443125 0.375627625 0.579209853 0.479655632 0.469478484 -0.01899 0.53537415 0.973693746 0.574820496 1.031094389 1.290057329 114.04805 1.194035989 1.325733471 0.917375024 0.411390638 10.1246 -0.86056 -0.58327 1.094142123 0.63232056 1.803799861 0.249101901 9.1808 3.1738 96.5961 131.5 6.51847 114.04805 3.245 2.9082 3.0766 10.0451 5.7249 61.0797 32.7569 8.4092 46.9183 1.9739 13.6856 7.82975 7.31636 6.12742 103.9 105.1 2.8976 2.945 10.1246 7.63698 40.8984 44.811 1.4577 1.6089 1.383830211 1.246361438 1.110296074 . . . . . . . . . . . . . . . . .

21 6/24/2012 in in 11 2 7 Young Young 4 -0.43748 -0.47732 1.05703 -0.59583 1.38934 -0.5432 -0.51095 1.32488 -0.37336 28 3.5087 0.27513 35.25 28 4.14 0.34434 . 48 37 50 26.84 -5.19056 -1.09736 1.189873418 -0.28284 -0.01188 . . . . . . 0.608511307 0.556911051 0.966556512 0.498313573 0.530444965 1.020692763 -0.00284 0.496076113 0.551183971 1.04608444 0.408807024 0.487270574 0.516089356 0.437215468 -0.05125 0.444318073 0.905668365 0.510723861 1.005757697 1.596232168 163.1 1.194539769 1.309570264 1.115005063 0.944512569 13.0547 2.06954 1.40269 1.195600652 1.001299545 2.709244867 0.893789901 9.4514 4.1688 153.9 172.3 6.94617 163.1 5.362 4.2351 4.79855 11.3001 11.2943 154.1 154 11.0877 154.05 3.8146 2.1861 3.00035 7.21944 6.0437 173.3 161.4 4.0704 4.7021 13.0547 9.96869 153.7 152 2.8356 2.8159 1.808270448 1.649434949 1.096296916 . . . . . . . . . . . . . . . . .

27 7/13/2012 in in 14 2 7 Young Young 4 -0.57118 1.17027 1.12696 -0.50938 -0.35813 0.57735 -0.86756 -0.12206 -0.23325 28 3.5087 0.27513 29.875 22 -1.86 -0.15471 74 32.5 37 50 27 -5.03056 -1.06353 1.240506329 0.92263 0.03875 74.83189309 1.065723426 0.021845 1.056560787 68.57484568 3.9579 0.571073867 0.568379391 0.975020454 0.603473945 0.597502345 1.04512692 0.021594 0.598454773 0.603756299 1.052506512 0.582047013 0.581051684 0.549451084 0.539401426 0.05094 0.585885688 0.961533458 0.593501515 1.031296044 1.533648262 142.35 1.160306393 1.299959467 1.163787731 0.675298911 11.3533 0.36814 0.24952 1.158043797 0.755177515 2.541883478 0.60306087 9.3569 3.3247 135.2 149.5 6.27655 142.35 5.7453 6.4182 6.08175 10.8357 8.451 102.1 90.1576 9.62602 96.1288 2.6721 11.1969 6.9345 6.9211 5.96489 150.7 142.2 7.0994 5.3397 11.3533 8.73358 99.4974 99.3317 7.03 7.1342 1.640389533 1.464164469 1.12035879 . . . . . . . . . . . . . . . . .

26 6/21/2012 in in 8 2 7 Young Young 4 -0.76022 0.04858 -0.02272 -1.01865 0.3714 0.93944 -0.76562 0.03232 0.45272 28 3.5087 0.27513 31.5 20 -3.86 -0.32106 74 36 42 60 30 -2.03056 -0.42929 1.164556962 -0.88557 -0.0372 74.93006775 1.046220508 0.002342 1.034098622 81.79719525 17.1802 0.512997181 0.61198935 0.976998653 0.505067272 0.618724241 1.0389022 0.01537 0.532647289 0.59499922 1.026967495 0.477453231 0.586023767 0.420044678 0.528820645 0.04036 0.501403515 0.960720188 0.593481821 1.01421083 1.317776121 124.55 1.343899208 1.407553165 1.858253165 1.042151746 11.3664 0.38124 0.2584 1.247138715 1.1208981 1.96902784 0.973743436 9.1742 5.1401 115.8 133.3 6.86584 124.55 4.5573 2.7176 3.63745 11.4415 10.121 129.8 129.8 9.04764 129.8 2.6948 2.7484 2.7216 8.39894 6.24968 119.8 118.5 3.9133 3.7544 11.3664 8.07529 117.2 136.8 3.002 2.6507 1.353313632 1.292112556 1.047365128 . . . . . . . . . . . . . . . . .

33 11/15/2013 in in 26 3 8 Young Young 5.5 -0.89262 -0.87853 0.20078 -0.81159 -0.07524 -1.4144 -0.80438 -0.51455 -0.19617 22.5 -3.8643 -0.30074 34.33333333 28 1.9736 0.16291 80 33 42 58 37.2 4.8017 1.00529 1.151898734 -0.96978 -0.04094 52.77120511 1.035976489 -0.015046 1.040133406 60.09881423 -3.4201 0.416499971 0.420639199 1.008669328 0.401573292 0.409043726 1.034693387 0.003596 0.414262403 0.436659695 1.031858526 0.416499971 0.400702856 0.403913708 0.416923877 -0.07503 0.409385854 0.388261474 0.411633982 1.029264163 1.211118774 80.7291 1.174470428 1.409078178 1.319352861 0.996350758 12.3763 1.6842 1.13208 1.01642697 1.003447915 1.490811557 0.898139022 9.89653 6.3754 71.6085 104.3 8.14892 80.7291 2.3013 2.0107 2.067 10.0591 9.50452 71.8554 93.6759 9.86931 80.4345 3.084 2.5037 2.606 9.08898 7.73879 76.4573 84.5135 2.0906 2.1235 12.3763 8.78326 75.4513 82.3307 2.6786 2.5837 1.361681949 1.134965544 1.199756201 1.188779617 0.981554942 9.46493 9.87097 52.2503 69.223 9.68727 58.0831 2.0885 2.1994 1.9939 12.3763 8.78326 75.4513 82.3307 2.6786 2.5837

34 11/11/2013 in in 22 3 8 Young Young 5.5 -0.59263 0.13144 0.59547 -0.77156 -0.07452 -0.69841 -0.70298 -0.3241 -0.47553 28 1.6357 0.1273 34 28 1.9736 0.16291 60 34 40 66 32.2 -0.1983 -0.04152 1.189873418 -0.07016 -0.00296 50.74083647 1.052380193 0.001357 1.039578976 46.4 -17.1189 0.513360813 0.509509978 1.001105239 0.465188219 0.469844789 1.032004389 0.000907 0.510456707 0.451978587 1.045998157 0.513360813 0.500656858 0.455815225 0.47785623 -0.01409 0.490587943 0.433265108 0.470411551 1.036860935 1.33985995 109.6 1.182062047 1.140041801 1.791594937 0.888458029 11.9457 1.2536 0.84264 1.274679462 0.946290598 1.467266831 0.79331307 9.69075 6.72483 105.3 131.6 8.22989 109.6 2.5116 1.3626 1.9662 12.3526 9.86712 99.6444 104.4 11.0269 97.375 2.3074 1.7235 2.1507 9.04664 7.65327 117 104.2 2.0067 1.9431 11.9457 10.4783 99.4458 97.336 2.3057 1.9856 1.320457098 1.369127184 0.964451743 1.404648179 1.103852948 11.9714 11.2189 94.6082 116.3 11.5601 95.4741 2.2803 0.9815 1.6482 12.7714 10.7937 99.2103 93.3121 1.5595 1.7024

35 11/17/2013 in in 28 3 8 Young Young 5.5 -0.46698 -0.40856 0.94781 -0.21932 -0.23416 0.72134 -0.54348 0.26669 0.93111 28 1.6357 0.1273 37.33333333 22 -4.0264 -0.33237 80 42 48 58 29.8 -2.5983 -0.54399 1.202531646 0.22971 0.0097 48.72583928 1.032414965 -0.018608 1.02583156 57.80673555 -5.7121 0.610740426 0.557685635 0.979022706 0.575050524 0.541262772 1.015639311 -0.015458 0.5576603 0.566928351 1.018585387 0.610740426 0.522510133 0.537132675 0.435970708 -0.05598 0.508262474 0.530517866 0.54177819 1.01236705 1.339268481 112.3 1.15420365 1.142925483 1.480405063 0.83366073 11.468 0.7759 0.52154 1.280536634 0.83950578 1.510644547 0.889516129 9.15335 6.06085 103.8 124 7.82345 112.3 3.6723 2.6172 3.3891 11.7212 9.15579 87.1407 110.3 10.4777 93.6201 3.828 2.4087 3.1059 8.43155 7.30508 112.3 107.8 3.0876 3.2436 11.468 10.0339 95.723 92.3548 3.1505 3.0797 1.360129514 1.373551008 0.990228616 1.350146035 1.008122012 11.4263 10.2208 74.2315 82.493 10.5628 74.0693 2.3511 1.9206 2.1114 11.9377 10.0525 79.5897 72.8342 2.2186 2.084

40 11/13/2013 in in 24 3 8 Young Young 5.5 -0.73743 0.8729 0.94193 -0.18844 -1.04029 0.58177 -0.9601 -0.63673 0.2726 22 -4.3643 -0.33965 31.33333333 22 -4.0264 -0.33237 74 30 42 67 37.7 5.3017 1.10997 1.227848101 0.82945 0.03501 59.83598236 1.027958304 -0.023065 1.025408345 56.903 -6.6159 0.588651964 0.591437814 0.989388168 0.490214315 0.510897436 1.009368596 -0.021729 0.521854207 0.47826087 1.004868768 0.533305346 0.562648221 0.514734128 0.551959508 0.06001 0.514734128 0.463135902 0.510123916 1.00105276 1.385760069 114.1 1.101574843 1.12337614 1.475189873 1.014022787 10.5585 -0.1336 -0.0898 1.158387633 1.025163094 1.713612159 0.906424581 9.79603 4.70425 107.3 143.2 7.03318 114.1 3.5283 3.1962 3.0629 11.3476 8.06126 110 129.8 9.7463 115.7 4.6954 3.1658 4.0494 7.46068 6.77274 116.8 116.2 3.3993 3.2607 10.5585 9.3989 112.4 117.4 4.1071 4.0289 1.415219524 1.387754439 1.019791027 1.367862048 0.987084329 9.99153 9.90308 104.4 188.5 9.62042 112 4.7452 0.9674 3.8373 10.7015 9.16519 111.1 113.1 3.618 4.0061

10 5/24/2012 in out 3 1 5 Young Middle 9 -0.09473 -0.4619 1.65186 0.73842 1.57525 -0.45757 -0.18806 2.2962 -0.17217 22.5 -8.2346 -0.633 40.625 36 4.9187 0.40109 . 62 42 . . . . 1.202531646 0.71638 0.03051 . . . . . . 0.453821529 0.478447122 1.01206708 0.461344727 0.469472964 1.062742464 0.013994 0.457809045 0.438825644 1.052008738 0.435060488 0.449288379 0.482610357 0.450177253 -0.0499 0.395173654 0.987475516 0.459692907 1.045720435 2.302401403 153.65 1.0868427 1.228553619 0.940405063 0.877318581 11.0567 1.0484 0.69509 1.518788927 0.815055159 4.421745844 0.939947781 6.2457 2.2018 154.1 153.2 4.16215 153.65 4.8165 4.9913 4.9039 9.4859 9.7358 125.6 144 9.58294 134.8 7.2388 11.2726 9.2557 4.42558 4.07196 151.8 153.8 5.035 4.85 11.0567 8.99977 137.3 136.3 8.3615 9.0363 2.498361797 2.210181338 1.130387699 . . . . . . . . . . . . . . . . .

3 5/27/2012 in out 4 1 5 Young Middle 9 -0.74801 0.03443 -0.01938 -0.35694 -0.06522 -0.97384 -0.7075 -0.43143 -0.50039 22.5 -8.2346 -0.633 32.875 32 0.9187 0.07491 80 35 42 78 . . . 1.151898734 -0.47266 -0.02013 81.27060337 1.09843684 0.030744 1.066985428 77.25466893 16.298 0.513596363 0.575976019 1.004845216 0.508645772 0.581655481 1.07484625 0.026097 0.499068034 0.532318913 1.038751045 0.482409882 0.530607218 0.49853078 0.49135366 -0.00872 0.478528962 0.993417435 0.551924561 1.052262263 2.030727468 140.75 1.044692616 1.215346253 1.10835443 1.175133215 9.70883 -0.29947 -0.19855 1.335402097 1.156876791 4.127057563 1.193093728 6.4773 2.0534 139.6 141.9 4.1995 140.75 4.8851 4.8551 4.8701 8.6498 8.4745 161.5 169.3 8.52804 165.4 7.8497 6.9539 7.4018 4.32836 4.14319 138.7 141.3 4.5805 5.0051 9.70883 7.98853 164.3 167.6 4.6811 6.7017 2.243073589 1.928110948 1.163352965 . . . . . . . . . . . . . . . . .

15 6/1/2012 in in 5 1 5 Young Middle 9 -0.17208 -0.23259 0.74267 -0.16482 -0.51402 0.41938 -0.30632 -0.16994 0.6355 32 1.2654 0.09728 38.5 28 -3.0813 -0.25127 . 42 52 . . . . 1.189873418 0.41912 0.01785 . . . . . . 0.513980646 0.51640392 0.984491293 0.481073332 0.482909209 0.948991871 -0.099757 0.54281524 0.489474517 0.945600739 0.504064805 0.535266738 0.498132844 0.493061172 -0.00702 0.436681481 1.018528172 0.517649764 0.977630888 1.275514617 165.15 1.230883936 1.383759263 0.931341772 0.486357251 5.82618 -4.18212 -2.77273 0.907093478 0.522747003 2.307713244 0.452784633 5.5981 1.8371 158.5 171.8 3.69984 165.15 3.6204 3.9363 3.77835 5.078 4.2395 82.8554 77.7884 4.7192 80.3219 4.7182 8.003 6.3606 4.21803 3.42683 167.6 155.6 3.855 3.9247 5.82618 4.2104 82.4206 82.953 5.7246 5.2454 1.381256179 1.228657389 1.124199627 . . . . . . . . . . . . . . . . .

2 6/3/2012 in in 6 1 5 Young Middle 9 -0.7887 -0.5469 -0.11496 -0.31537 0.13159 -0.20891 -0.75098 -0.13768 0.25001 28 -2.7346 -0.21021 31.75 22 -9.0813 -0.74054 86 35 42 78 . . . 1.139240506 -0.76992 -0.03279 75.23148009 1.09098966 0.023297 1.044260436 79.87185355 18.9152 0.560364051 0.563616706 0.981833177 0.54401258 0.551523297 1.051112163 0.002363 0.547124701 0.526186038 1.019949749 0.51369329 0.532858274 0.486357911 0.470482224 -0.0296 0.444231381 0.966096458 0.53679298 1.012832978 1.058045946 127.61165 1.135037701 1.621248551 1.032685266 0.229461025 7.5521 -2.4562 -1.62845 0.77985436 0.303431379 1.72304379 0.183944304 7.9511 3.4825 97.2233 158 5.44069 127.61165 3.8237 2.8708 3.34725 6.2007 6.0005 29.5006 29.0632 5.7565 29.2819 11.3972 32.4309 21.91405 5.8813 5.18159 107 108.6 4.216 3.9 7.5521 4.6582 31.4355 33.158 16.9658 9.633 1.284086852 0.898990464 1.428365375 . . . . . . . . . . . . . . . . .

11 5/21/2012 in in 1 1 5 Young Middle 9 -0.59305 1.49316 -0.32912 -0.60503 -0.02051 0.09431 -0.64441 -0.55988 -0.85522 22.5 -8.2346 -0.633 33.875 36 4.9187 0.40109 80 35 42 . . . . 1.164556962 -0.1754 -0.00747 56.92811117 1.04330981 -0.024383 1.054122183 55.79027356 -5.1664 0.685769137 0.703568262 1.004121695 0.695096059 0.696539818 1.056140427 0.007392 0.701447527 0.696213425 1.060160732 0.693828208 0.666283745 0.644644605 0.640164741 0.14009 0.551875163 1.002898604 0.70100765 1.060213329 1.581800191 207.15 1.223831408 1.383929493 1.010860759 0.508615013 9.65396 -0.35434 -0.23493 1.214472191 0.598347961 2.878426742 0.429824116 7.048 2.7103 193.7 220.6 4.94192 207.15 4.2742737 4.1646 4.21943685 8.5596 7.8014 115.9 94.8192 7.81713 105.3596 3.2916 3.4965 3.39405 5.6296 4.59998 227.7 210.8 3.0474 3.3948 9.65396 6.97576 90.3724 102.4 2.7904 2.2922 1.714857183 1.516476159 1.130817108 . . . . . . . . . . . . . . . . .

6 5/22/2012 in in 2 1 4 Young Middle 13 0.69389 0.59418 -0.14474 -0.38464 0.74941 2.31494 0.62279 0.80629 0.74785 42 6.2708 0.47936 52.25 41 4.1416 0.336 80 62 64 60 . . . 1.151898734 0.08537 0.00365 . . . . . . 0.652671123 0.650878735 0.981499226 0.684773028 0.687793667 1.053589146 -0.015333 0.646089009 0.661436908 1.07074742 0.638596491 0.650475367 0.539769585 0.637567649 0.1282 0.503429579 0.934982216 0.6618103 1.042652953 1.494794074 132.1 1.066354792 1.340681874 1.056101266 0.657355413 7.67594 -1.55087 -1.02135 1.176910692 0.673353941 2.923602835 0.641997774 6.3354 1.5943 129.4 134.8 4.24132 132.1 3.5784 4.277 3.9277 7.4562 4.6611 87.132 86.5413 6.3399 86.83665 9.2531 11.1431 10.1981 4.43353 4.15765 132.8 129.1 3.3453 3.9132 7.67594 5.7254 87.6965 86.5967 12.578 9.2152 1.731338234 1.377075992 1.257256857 . . . . . . . . . . . . . . . . .

22 6/23/2012 in out 10 2 2 Old Old 23 1.30793 2.15464 0.76405 0.75763 -0.45796 -0.94947 0.86367 -0.27427 -1.98716 48 -0.2158 -0.01691 55.625 62 10.699 0.89247 . 55 57.5 84 33.2 -3.48862 -0.73325 1.202531646 2.67858 0.11374 67.64951784 1.194270029 0.059897 1.150053355 57.94258373 7.2348 0.715713893 0.729361496 1.02782574 0.786631402 0.783314898 1.124039754 0.004686 0.757654161 0.754811715 1.102959963 0.744741837 0.675324675 0.6583133 0.632679056 0.10009 0.577905035 1.065779022 0.773954963 1.095774427 1.475377436 174.7 1.276157053 1.372829022 0.903827848 0.657698912 8.01194 0.73885 0.49853 0.921271915 0.794373744 2.061225872 0.555722139 7.5005 2.953 149.3 200.1 4.41201 174.7 3.5718 2.9888 3.2803 6.91 6.0868 118.6 111.2 6.50938 114.9 5.9513 8.0907 7.021 5.21083 4.08322 175.2 156.5 3.1069 3.2732 8.01194 5.83608 116.7 105.2 39.5928 42.8242 1.537555437 1.429283752 1.075752408 . . . . . . . . . . . . . . . . .

17 6/4/2012 in out 7 1 1 Old Old 28.4 1.26574 1.40873 0.71579 2.05045 -0.68287 -0.80286 0.95399 0.13195 -1.11498 42 -12.9585 -1.05618 57.5 62 2.9 0.25234 . 62 64 . . . . 1.17721519 2.88858 0.12053 75.83721046 1.14573745 -0.014355 1.119636714 59.6091954 12.8545 0.69330816 0.679382744 0.987879275 0.719919006 0.740880272 1.107430981 -0.039157 0.734565673 0.718776551 1.110563411 0.704980025 0.650933427 0.601599284 0.595763565 0.05063 0.513966955 1.032348058 0.733369906 1.103744839 1.340006506 99.59605 1.596387291 1.916445888 1.422630278 0.293315347 5.2878 -0.93028 -0.6534 0.991939185 0.408372487 2.235474389 0.209254561 3.486 1.5989 84.0921 115.1 2.4591 99.59605 2.036 2.3184 2.1772 3.4579 3.5743 34.3409 24.0852 3.29521 29.21305 1.2608 2.091 1.6759 3.35476 2.10147 87.8296 99.6144 2.0985 2.1633 5.2878 2.75917 30.1174 14.5556 2.2223 1.0745 1.576208134 1.312971396 1.200489317 . . . . . . . . . . . . . . . . .

31 7/22/2012 in in 18 2 3 Old Old 20 0.96663 -0.86674 -0.60295 0.04182 -0.39533 0.88313 1.049 -0.33834 1.12856 48 3.5302 0.27296 58.75 48 1.0318 0.08481 88 61 78 74 37.5 1.54687 0.32003 1.101265823 -0.12552 -0.00536 50.6902244 1.132364538 0.01228 1.106795755 45.75262917 -7.1514 0.590896723 0.591097738 1.026351228 0.654344949 0.662693897 1.117021613 0.012797 0.661152765 0.64608076 1.13741887 0.600536003 0.662290749 0.519514201 0.508474459 -0.01715 0.427353603 1.108915435 0.660909308 1.085427122 1.045441195 91.19105 1.673484787 1.953623467 1.314162835 0.158278691 9.3358 1.47659 0.98284 0.822547624 0.132628349 1.445833025 0.177481304 7.3755 4.0569 78.0821 104.3 5.82225 91.19105 2.1862 2.264 2.2251 6.0667 5.8656 10.3559 18.5113 6.08682 14.4336 1.3149 15.5757 8.4453 8.18401 4.8904 83.9699 89.0109 2.0122 -0.7340146 9.3358 4.77871 30.1891 33.8537 3.537 2.0198 1.140736632 0.977161377 1.167398403 . . . . . . . . . . . . . . . . .

23 6/22/2012 in in 9 2 2 Old Old 23 1.50302 -0.82575 0.11706 0.5677 -0.61884 -0.10781 1.5111 -0.17196 0.61837 48 -0.2158 -0.01691 66 62 10.699 0.89247 88 70 84 . 35.8 -0.88862 -0.18677 1.126582278 0.89 0.03779 63.11841002 1.182742006 0.048369 1.109502538 60.24324324 9.5354 0.587501503 0.583006383 1.008737461 0.38269803 0.619880624 1.138321301 0.018967 0.547659266 0.581962309 1.107158249 0.461231884 0.527919676 0.495629023 0.478775719 -0.05382 0.405019079 1.069812325 0.594204387 1.089528506 0.883945148 181.25 1.038902229 1.235644488 0.974683544 0.584275862 4.8191 -2.45399 -1.6558 0.687225277 0.670078266 2.104539064 0.511710794 6.5293 1.9916 166.1 196.4 4.60515 181.25 3.2389 4.8832 4.06105 4.4871 4.1914 111.3 100.5 4.0707 105.9 4.9226 8.7706 6.8466 4.51269 4.34371 188.8 179.5 3.6434 2.9615 4.8191 3.90007 102.6 105.8 29.9739 8.6575 1.067899634 0.89786611 1.189375145 . . . . . . . . . . . . . . . . .

30 7/21/2012 in in 17 2 3 Old Old 20 0.89504 -1.5733 0.13112 0.92115 -2.00727 1.67635 1.00814 -0.788 2.81791 42 -2.4698 -0.19096 58.75 42 -4.9682 -0.40839 . 61 90 . 41.6 5.64687 1.16828 1.139240506 0.76373 0.03261 43.88977764 1.133035215 0.012951 1.119900659 45.38359788 -7.5204 0.495965828 0.503327518 1.051332908 0.557332097 0.558941128 1.117413607 0.013189 0.552779279 0.544314153 1.04051134 0.538537975 0.512777962 0.417006104 0.401726948 -0.1239 0.464428973 1.102116395 0.54910641 1.055634112 1.290344003 80.4688 1.282102851 1.510885407 0.961234633 0.384376305 8.61457 0.75536 0.50278 0.9347123 0.60522648 2.292761813 0.25366271 6.9569 2.6899 59.8376 101.1 4.95402 80.4688 1.5991 2.3303 1.9647 6.5027 6.1673 36.2153 25.6453 6.39239 30.9303 1.784 2.4897 2.13685 5.76286 4.49485 71.354 77.5402 1.4077 1.6179 8.61457 5.70167 18.8718 31.5474 1.4156 1.4553 1.494842838 1.268489494 1.178443216 . . . . . . . . . . . . . . . . .

29 7/18/2012 in out 16 2 3 Old Old 20 -0.62522 -1.73702 0.08083 1.88901 0.70188 -1.06267 -0.48972 1.22752 0.5292 30 -14.4698 -1.11881 35.5 22 -24.9682 -2.05239 . 48 42 60 38.7 2.74687 0.5683 1.101265823 -0.12552 -0.00536 42.07624188 1.138181818 0.018097 1.098830762 47.10474716 -5.7993 0.464758838 0.493178934 0.99875862 0.504695869 0.500966989 1.137160032 0.032936 0.517828992 0.513394316 1.117980516 0.507160052 0.487079947 0.34518775 0.322688752 -0.20294 0.436753948 1.032348058 0.512406216 1.065176098 0.869751557 86.431 1.335921305 0.91606686 1.501998987 0.254726313 7.66907 -0.19014 -0.12656 0.845638705 0.273512307 1.033659326 0.241135593 7.1825 5.4398 72.562 100.3 6.43286 86.431 2.3116 2.3918 2.3517 6.0738 5.6229 19.8466 24.1859 5.59499 22.01625 1.3512 1.6648 1.508 7.66907 5.74066 93.0967 85.4339 2.0361 -0.8112331 5.28817 5.77269 41.4852 51.8794 2.2058 2.5792 0.689545147 1.005579498 0.685719178 . . . . . . . . . . . . . . . . .

32 7/24/2012 in in 19 2 3 Old Old 20 -0.14043 -1.33814 -0.74487 0.88326 0.26421 -0.25707 0.06371 0.27138 0.74327 34 -10.4698 -0.80953 44.125 34 -12.9682 -1.06599 . 51 57.5 74 35.5 -0.45313 -0.09375 1.075949367 -0.71835 -0.03068 46.77397602 1.196381174 0.076297 1.126419378 40.87115839 -12.0328 0.507790838 0.546313144 1.027537078 0.558635215 0.582 1.14550868 0.041284 0.558937088 0.558299148 1.081685029 0.554718876 0.556032427 0.469061316 0.442408326 -0.08322 0.400097198 1.056021071 0.5630676 1.09850023 1.213713083 115.10685 1.31977501 1.402549326 1.010190604 0.796533395 9.47934 1.62013 1.07838 0.85267744 0.906475716 1.850325992 0.71267611 8.2859 3.8958 99.6137 130.6 6.48884 115.10685 3.4579 3.2766 3.36725 7.0652 7.2085 90.2974 93.0755 7.87559 91.68645 5.8004 7.1663 6.48335 7.70548 5.83848 120.4 122.2 3.8134 3.9579 9.47934 6.75865 86.9796 86.6135 5.919 6.492 1.230207593 1.157604376 1.062718505 . . . . . . . . . . . . . . . . .

36 11/18/2013 in in 29 3 6 Old Old 22 -0.69946 1.26575 -1.48616 1.54989 2.27547 0.84803 -0.56633 1.87253 -0.82678 28 -18.9671 -1.47892 36.33333333 28 -21.8567 -1.81313 80 50 31 76 44.5 8.05654 1.68319 1.069620253 -0.59014 -0.02511 52.50803998 1.069941891 -0.059668 1.072878994 54.63566667 3.1958 0.713319316 0.729510657 1.020212506 0.710470767 0.741747778 1.067246922 -0.047064 0.731000197 0.756556718 1.094705385 0.713319316 0.712529339 0.651132581 0.624686776 0.09442 0.651132581 0.673348519 0.733186399 1.056199146 1.036864504 81.5908 1.260454703 1.457120565 1.434521114 0.909498375 7.97434 0.50588 0.33957 0.950410362 1.032585696 1.371684931 0.773114498 7.33621 4.12925 68.2907 121.4 6.0858 81.5908 1.9957 1.8876 1.7971 6.97241 5.66403 70.516 93.8561 6.31015 74.2067 3.0666 1.3297 2.1686 6.77265 5.37318 81.024 82.7593 1.7555 1.8299 7.97434 5.47267 70.0239 76.4147 1.9778 2.2605 1.177432763 1.018516037 1.156027711 1.082989911 1.044485472 6.80327 6.56819 58.4704 73.9534 6.59086 61.8496 2.3875 1.6413 2.0017 8.32272 5.72749 61.4303 62.2661 2.028 1.9677

37 11/14/2013 in in 25 3 6 Old Old 22 -0.94302 0.28477 -2.58892 0.60931 -0.15264 0.70547 -0.64055 -1.00318 0.33702 30 -16.9671 -1.32297 34.66666667 25 -24.8567 -2.062 80 31 48 66 41.5 5.05654 1.05643 1.025316456 -1.63119 -0.06942 51.17640272 1.092378457 -0.037232 1.096482221 52.47066667 1.0308 0.626205384 0.640406607 1.023182891 0.637568389 0.653268151 1.098631574 -0.015679 0.67150572 0.69331433 1.080404773 0.626205384 0.637877211 0.558061691 0.596725846 0.06646 0.568290781 0.571509671 0.640526983 1.053029696 1.319740433 93.1708 1.154650923 1.270111291 1.321209316 0.987734355 9.17456 1.7061 1.14522 1.193028019 0.957942798 1.572114756 1.038273616 7.14259 4.43654 84.1473 122.8 5.88518 93.1708 2.8829 2.1433 2.4685 8.52131 6.97475 80.6083 127.5 7.76691 92.028 3.0167 1.9343 2.3802 6.48512 5.61652 93.5324 92.9153 2.4211 2.4973 9.17456 7.22343 89.3291 89.1011 1.9012 2.2545 1.414709365 1.286104207 1.099995908 1.296454824 0.982355918 7.76125 7.6638 76.2844 107.6 7.62987 83.0727 2.6216 1.375 2.0485 9.22385 6.72996 87.8092 89.1985 2.1478 2.8364

38 11/10/2013 in in 21 3 6 Old Old 22 3.10534 -0.36162 -0.78076 -2.03801 1.72111 -0.57332 3.06733 0.38569 -1.38008 82 35.0329 2.73161 89.66666667 88 38.1433 3.16419 . 89 92 . 27.3 -9.14346 -1.91027 1.082278481 -0.2927 -0.01246 48.46523962 1.113165829 -0.016444 1.094337045 55.70666667 4.2668 0.58361819 0.60487407 1.033382122 0.552577216 0.596189041 1.136773717 0.022463 0.575239967 0.598094363 1.129197965 0.58361819 0.561575799 0.496989803 0.525715367 -0.00455 0.496989803 0.503524127 0.571033325 1.094193236 1.186134951 54.5878 1.167730258 1.262157288 1.514984405 0.803054895 8.8324 1.36394 0.91555 1.081642455 0.78192131 0.949728374 0.86030877 7.43302 7.43302 48.748 73.971 6.36882 54.5878 2.4106 2.0111 2.0208 8.03987 7.05935 38.1171 63.6379 7.55428 43.837 2.5868 1.5316 1.8293 6.7485 5.77916 51.7241 53.9191 2.5071 2.3264 8.8324 6.99786 41.5366 44.8159 1.74 1.9057 1.308794547 1.210878398 1.080863735 . . . . . . . . . . . . . . . . .

41 11/12/2013 in in 23 3 6 Old Old 22 -0.02609 0.53929 -2.10169 -0.56055 -1.61153 -2.08944 0.17903 -2.97451 -1.32721 36 -10.9671 -0.85514 49.66666667 56 6.1433 0.50962 80 30 63 85 41.2 4.75654 0.99375 1.056962025 -0.88759 -0.03777 53.27269549 1.074522205 -0.055088 1.076475403 49.08185185 -2.358 0.576499447 0.589722299 1.020180304 0.663138487 0.654875202 1.109767203 -0.004544 0.646527746 0.648966108 1.100031317 0.576499447 0.639108705 0.543820916 0.557045023 0.02677 0.543820916 0.591906693 0.644632858 1.089109859 1.134660413 43.0988 1.391015422 1.654629727 2.398751575 0.89364205 6.26509 -1.20337 -0.80777 1.085148628 0.865149482 1.193570006 0.849604324 4.21557 3.68554 56.4247 30.8586 3.96761 43.0988 1.4649 1.2722 1.335 4.57452 4.39895 48.8158 26.2176 4.50189 38.5149 1.4195 1.0945 1.2538 4.97352 3.57546 39.4307 54.3471 1.2564 1.4888 6.26509 3.7864 33.3256 43.5 1.2331 1.2732 1.259689315 1.058996605 1.189512137 1.128818105 0.994851051 4.36528 4.58717 46.6666 34.4218 4.47871 39.1787 1.7071 1.5198 1.5871 6.44728 3.63688 33.3318 43.0658 1.5176 1.664

42 11/16/2013 in in 27 3 6 Old Old 22 . . . . . . . . . 89 42.0329 3.27742 89 . . . . 89 . . 27 -9.44346 -1.97295 0.981012658 -1.92863 -0.08208 44.76783141 1.0927966 -0.036813 1.089004957 52.454 1.0141 0.641835518 0.647852457 1.021171373 0.664005446 0.685851587 1.120934769 0.006624 0.700669669 0.705813271 1.071976581 0.641835518 0.661933879 0.573800799 0.571963215 0.04169 0.573800799 0.612877972 0.682854164 1.09481339 1.244345905 51.5718 1.317512528 1.297041808 2.192260962 0.892501328 8.85816 1.3897 0.93284 1.152551787 0.849478759 1.38523095 0.857677336 6.37318 5.48214 45.3245 63.3996 5.97841 51.5718 2.2034 1.8198 1.9855 7.34542 7.59403 38.5022 54.3764 7.43921 46.0279 2.3157 1.966 2.1712 7.16184 5.43588 49.2702 53.0002 1.9752 1.991 8.85816 6.82951 39.1379 48.35 2.0111 2.2169 1.236855333 1.256376153 0.9844626 1.117270311 0.897877597 6.45439 6.91883 35.4378 45.3871 6.6795 38.6908 2.698 1.8951 2.1195 8.34277 6.08611 38.0649 40.5646 2.0733 2.0885

;;run;quit;

Grand Advisor
Posts: 16,403

Re: ODS Graphics problem

Very close to this example:

SAS(R) 9.3 ODS Graphics: Procedures Guide, Third Edition

The data label and group options will get you the rest of the way.

Assuming you're on SAS 9.3 or SAS 9.4

Occasional Contributor
Posts: 10

Re: ODS Graphics problem

Cool.  My code looks like this and produces reasonable graphs.  I did a bit of searching, but could you point me to how to save these as 200-300dpi jpg files?

proc sgplot data=all;

reg x=Agemonths y=noise / CLM CLI;

  scatter x=Agemonths y=noise / group=ExperimentGroup DATALABEL= CaseNum DATALABELATTRS= (size=20) Markerattrs= ( size=13) ;run;quit;

SAS Super FREQ
Posts: 1,044

Re: ODS Graphics problem

ods listing image_dpi=300;

ods graphics / outputfmt=JPG.

proc sgplot ....

I would recommend outputfmt=PNG, which is the default for Listing, since JPG has a lossy compression.

Occasional Contributor
Posts: 10

Re: ODS Graphics problem

Thanks, seems to work except I can't find where it goes. In 9.4 in the results tab it appears to output an image but this a png. In truth this is fine for now, but I think some journals need 300dpi jpgs, but I could be pulling that out of nowhere.

SAS Super FREQ
Posts: 8,646

Re: ODS Graphics problem

Hi, Here's a modified version of Sanjay's code that shows how to use IMAGENAME= and GPATH= to set the image location. Or, you could just use ODS RTF or ODS PDF, both of which will embed your image inside the document.

cynthia

Attachment
Occasional Contributor
Posts: 10

Re: ODS Graphics problem

Thank you

Post a Question
Discussion Stats
  • 15 replies
  • 1112 views
  • 1 like
  • 5 in conversation