IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Cursor positioning problem


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Tue Jan 13, 2009 2:47 pm
Reply with quote

Code:
)ATTR                                                                   
  @ TYPE(OUTPUT) INTENS(LOW)  CAPS(OFF)                                 
  ! TYPE(INPUT)  INTENS(NON)                                           
  ¢ TYPE(TEXT)   INTENS(HIGH) COLOR(WHITE) HILITE(REVERSE)             
  ¬ TYPE(OUTPUT) COLOR(TURQUOISE)                                       
)BODY expand($$)                                                       
+$-$¢ FINCADS TESTING MAIN MENU  +$-$                                   
%Option+===>_ZCMD                                                       
+                                                                       
+ $ $ User id...:@JUID   +                                             
+ $ $  Center...:@JCTR   +                                             
+ $ $  Region...:@JREG   +                                             
+                                                                       
% I  -        - +Initialize           + % 0  -        - +0DFC200    +   
% H  -        - +House keep           + % S  -        -+_JOBNAMEM+ 
% D  -        - +DB Refresh           + % V  -        - +Validation +   
% A  -        - +Archive              + % P  -        - +Posting    +   
% B  -        - +Del B-File           + % X  -        - +Exit       +   
+                                                                       
 +                                                                     
 +                                                                     
 +                    YEAR     MONTH     DATE     JULIAN    HLD-IND     
 + ENTER  AFCDATE  : _YYYY+   _MM+      _DT+     _JUL+     _H+(Y/N)+   
 +                                                                     
 + ENTER  CENTRE   : _CT+     (01  02  03  04  05  07  10  17)         
 +                                                                     
 +                                                                     
 +                                                                     
 + ¬JWAR                                  $ $  @ZDATE    + @ZTIME    + 
 +                   +       (Dev by Nagesh kothakota )       +         
 )INIT                                                                 
  &ZCMD = .CURSOR                                                       
 )REINIT                                                               
  .ATTR (.CURSOR) = 'COLOR(RED) HILITE(USCORE)'                         
  REFRESH (ZCMD)                                                       
  &ZCMD = .CURSOR                                                       
 )PROC
 REFRESH *
 )END


Currently my cursor is palcing at option "S" instead of ZCMD

if i remove this option from the panel then its placing ZCMD

why its happening like this
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jan 13, 2009 3:07 pm
Reply with quote

Use the CMD keyword in your )BODY section., or use the .CURSOR properly.

O.
Back to top
View user's profile Send private message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Tue Jan 13, 2009 3:27 pm
Reply with quote

Have done the declaration of cursor as per the standards

i did not understand what i need to change

can u help me out
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Jan 13, 2009 3:30 pm
Reply with quote

-+_JOBNAMEM

. ./\ what is this?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jan 13, 2009 3:31 pm
Reply with quote

Sure I can help you. Just read the fine manual first.

O.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Jan 13, 2009 10:13 pm
Reply with quote

Quote:
Have done the declaration of cursor as per the standards


Perhaps you do not understand the standards or you do not understand how .CURSOR is used.

There is a difference between:
Code:
&ZCMD = .CURSOR

and
Code:
.CURSOR = &ZCMD
Back to top
View user's profile Send private message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Tue Jan 20, 2009 12:02 pm
Reply with quote

oops... my problem is resolved in different manner after initializing the varibale like below

Code:
JOBNAMEM = '@JOBNAME'
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Jan 20, 2009 9:55 pm
Reply with quote

Perhaps your cursor is in the wrong location, but this is still wrong.
Code:
&ZCMD = .CURSOR
Wrong in the init section.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Need to add field to copybook, proble... COBOL Programming 14
Search our Forums:

Back to Top