home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / bit / listserv / sasl / 5516 < prev    next >
Encoding:
Text File  |  1993-01-05  |  2.8 KB  |  74 lines

  1. Newsgroups: bit.listserv.sas-l
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!wupost!psuvax1!atlantis.psu.edu!drh4.psu.edu!drh4
  3. From: Daryl R. Hoffman <drh4@apix.psu.edu>
  4. Subject: Re: Cursor Position in FSEDIT Called from AF
  5. Message-ID: <ke31Huotwb@atlantis.psu.edu>
  6. X-Xxmessage-Id: <A76F53437901399C@drh4.psu.edu>
  7. X-Xxdate: Tue, 5 Jan 93 22:01:23 GMT
  8. Sender: news@atlantis.psu.edu (Usenet)
  9. Organization: Pennsylvania State University
  10. X-Useragent: Nuntius v1.1.1d12
  11. References: <921230211359_76666.136_CHL73-1@CompuServe.COM>
  12. Date: Tue, 05 Jan 93 19:58:47 GMT
  13. Lines: 59
  14.  
  15. Subject:      Cursor Position in FSEDIT Called from AF
  16. From: Patrick Spreng, 76666.136@COMPUSERVE.COM
  17. Date: Wed, 30 Dec 1992 16:14:00 EST
  18. In article <921230211359_76666.136_CHL73-1@CompuServe.COM> Patrick
  19. Spreng, 76666.136@COMPUSERVE.COM writes:
  20. >SAS/FSP and SAS/AF Version 6.07
  21. >
  22. >Amnon Igra writes:
  23. >
  24. >> I am using the call fsedit function in a SAS AF SCL program. When I
  25. use it
  26. >> without specifying a screen, then the cursor automatically is placed
  27. on the
  28. >> first variable in the default screen, and the tab key takes the cursor
  29. to the
  30. >> next variable just like I want it to.
  31. >>
  32. >> When I specify a screen, and then modify the screen using SAS FSEDIT
  33. screen
  34. >> modify menu, I no longer get the cursor to work as before. I don't
  35. think I
  36. >> should have to write another SCL program in FSEDIT. Can anyone help me
  37. figure
  38. >> out why the cursor no longer responds to the tab key, and why it no
  39. longer is
  40. >> initially placed on the first screen variable? Thanks very much!
  41. >
  42. >I know of two ways to change the cursor position.  One is
  43. >documented on page 269 of "SAS/FSP Software Usage and
  44. >Reference."  The CURSOR command is entered while you are in the
  45. >FSEDIT window and changes the default cursor position used each
  46. >time an observation is displayed.
  47. >
  48. >The other way is to add the CURSOR SCL statement to the INIT
  49. >section of your program.  This is documented on page 134 of
  50. >"SAS Screen Control Language Reference."  This is the method
  51. >that I use when I'm developing FSEDIT applications called from
  52. >SAS/AF version 6.07 under MVS.
  53. >
  54. >        FSEINIT:
  55. >           return;
  56. >        INIT:
  57. >           cursor wvarname;
  58. >           return;
  59. >        MAIN:
  60. >           ...
  61. >
  62. >I hope that this is helpful in your situation of SAS 6.04.
  63.  
  64.  
  65.   I believe that what Amnon was asking is why is the default cursor
  66. position not being set when he uses a permanent user defined screen, and
  67. it was set when he used the SAS FSEDIT default screen.  The cursor should
  68. be positioned on the first field of the screen, unless the applications
  69. programmer specifies otherwise.  I have not had any problems with this in
  70. SAS 6.07 running with VM/ESA 1.1.
  71.  
  72.   The cursor command is the way to make sure that the user is placed on
  73. the appropriate field, and Bruce has answered that.
  74.