SPA SIZE ISSUE
Moderator: Moderator Group
SPA SIZE ISSUE
Hi,
Problem:
In the online Screen for a Account Number it will display around 40 list of fields like FN,LN,MN,ADD,PH,MOB etc...
If we give this Acc358768543 in the screen it will display like
LN KUMAR
MN SUNDAR
FN SHYAM
now the issue is while pressing PF8 key to view the next screen
it is displaying like in the first screen 13 ,
second screen fields after 13 and
while pressing 3rd time PF8 it is displaying the first 13 fields again instead of displaying fields after 26.
The account number has totally 44 fields.
i have changed the SPA occurs to 50 times.
i have given the code changes below for the program.
IF SPA-PF8-PRESS-COUNT = 1
COMPUTE REST-OF-LINES1 = SPA-FEATURE-COUNT - 13
COMPUTE REST-OF-LINES = REST-OF-LINES1 + 14
END-IF
IF SPA-PF8-PRESS-COUNT = 2
COMPUTE REST-OF-LINES1 = SPA-FEATURE-COUNT - 26
COMPUTE REST-OF-LINES = REST-OF-LINES1 + 27
END-IF
IF SPA-PF8-PRESS-COUNT = 3
COMPUTE REST-OF-LINES1 = SPA-FEATURE-COUNT - 39
COMPUTE REST-OF-LINES = REST-OF-LINES1 + 40
END-IF
IF SPA-PF8-PRESS-COUNT = 1
PERFORM 37500-MOVE-SPA-TO-IO-AREA
VARYING SUB1 FROM 14 BY 1
UNTIL SUB1 >= REST-OF-LINES
OR SUB1 > 29
OR SUB1 > 26
END-IF
IF SPA-PF8-PRESS-COUNT = 2
PERFORM 37500-MOVE-SPA-TO-IO-AREA
VARYING SUB1 FROM 27 BY 1
UNTIL SUB1 >= REST-OF-LINES
OR SUB1 > 30
MOVE ZERO TO SPA-PF8-PRESS-COUNT
IF SPA-PF8-PRESS-COUNT = 3
PERFORM 37500-MOVE-SPA-TO-IO-AREA
VARYING SUB1 FROM 40 BY 1
UNTIL SUB1 >= REST-OF-LINES
OR SUB1 > 34
MOVE ZERO TO SPA-PF8-PRESS-COUNT
Please guide me to solve the issue.
Thanks
Siva
Problem:
In the online Screen for a Account Number it will display around 40 list of fields like FN,LN,MN,ADD,PH,MOB etc...
If we give this Acc358768543 in the screen it will display like
LN KUMAR
MN SUNDAR
FN SHYAM
now the issue is while pressing PF8 key to view the next screen
it is displaying like in the first screen 13 ,
second screen fields after 13 and
while pressing 3rd time PF8 it is displaying the first 13 fields again instead of displaying fields after 26.
The account number has totally 44 fields.
i have changed the SPA occurs to 50 times.
i have given the code changes below for the program.
IF SPA-PF8-PRESS-COUNT = 1
COMPUTE REST-OF-LINES1 = SPA-FEATURE-COUNT - 13
COMPUTE REST-OF-LINES = REST-OF-LINES1 + 14
END-IF
IF SPA-PF8-PRESS-COUNT = 2
COMPUTE REST-OF-LINES1 = SPA-FEATURE-COUNT - 26
COMPUTE REST-OF-LINES = REST-OF-LINES1 + 27
END-IF
IF SPA-PF8-PRESS-COUNT = 3
COMPUTE REST-OF-LINES1 = SPA-FEATURE-COUNT - 39
COMPUTE REST-OF-LINES = REST-OF-LINES1 + 40
END-IF
IF SPA-PF8-PRESS-COUNT = 1
PERFORM 37500-MOVE-SPA-TO-IO-AREA
VARYING SUB1 FROM 14 BY 1
UNTIL SUB1 >= REST-OF-LINES
OR SUB1 > 29
OR SUB1 > 26
END-IF
IF SPA-PF8-PRESS-COUNT = 2
PERFORM 37500-MOVE-SPA-TO-IO-AREA
VARYING SUB1 FROM 27 BY 1
UNTIL SUB1 >= REST-OF-LINES
OR SUB1 > 30
MOVE ZERO TO SPA-PF8-PRESS-COUNT
IF SPA-PF8-PRESS-COUNT = 3
PERFORM 37500-MOVE-SPA-TO-IO-AREA
VARYING SUB1 FROM 40 BY 1
UNTIL SUB1 >= REST-OF-LINES
OR SUB1 > 34
MOVE ZERO TO SPA-PF8-PRESS-COUNT
Please guide me to solve the issue.
Thanks
Siva
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
i have no idea what a SPA is.
i assume it is some kind of save area to hold data in between transactions invocation.
explain what is a SPA for this dumb poster.
how are you populating the SPA
what is displayed on a screen (how many lines?)
what comprises a line from the SPA item?
i assume that each account can have enough data for three pages of display....is that correct.
what do you do if someone PF7?
your code is garbage by the way. don't know if it is typos or just your code.
don't show code, explain your requirement.
i assume it is some kind of save area to hold data in between transactions invocation.
explain what is a SPA for this dumb poster.
how are you populating the SPA
what is displayed on a screen (how many lines?)
what comprises a line from the SPA item?
i assume that each account can have enough data for three pages of display....is that correct.
what do you do if someone PF7?
your code is garbage by the way. don't know if it is typos or just your code.
don't show code, explain your requirement.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
This is the firt time that you have mentioned an error being displayed. Also you have said the problem was resolved. If your problem was resolved then this is a new problem and should be in a new topic. And, from what you have said no one can help you. An error. WHAT error? An IMS error? A program error? A something else error?
Regards
Nic
Nic
this is the error code for the abend
***************************************************************************
DFS555I TRAN tttttttt ABEND (SYSID sss); MSG
IN PROCESS: xxxx (up to 78 bytes of data) time- stamp
Explanation: An application program abend occurred during the processing of
transaction tttttttt (in system sss in a multi- system environment). The
variable xxxx is replaced by up to 78 characters of the input transaction
being processed. A time stamp follows the input transaction data.
If the input transaction is missing, the following message appears: QMGR RC
NE 0, MSG. NOT AVAIL.
System Action: The input transaction identified by this message is deleted
from the system unless this message is preceded by the SUCCEEDED version of
message DFS550I.
Programmer Response: Correct the cause of the application program abend.
Terminal Operator Response: If this multi- segment message uses Message
Format Service to send a formatted screen with a SYSMSG field, only one
segment is sent at a time. Press PA1 to retrieve the remaining segments.
Master Terminal Operator Response: See message DFS554A, which always
follows this error message at the IMS master terminal. See message DFS550I
which might precede this message at the IMS master terminal.
Problem Determination: 4, 5, 6, 8, 10, 18, 19
Module: DFSFXC40
*****************************************************************************
***************************************************************************
DFS555I TRAN tttttttt ABEND (SYSID sss); MSG
IN PROCESS: xxxx (up to 78 bytes of data) time- stamp
Explanation: An application program abend occurred during the processing of
transaction tttttttt (in system sss in a multi- system environment). The
variable xxxx is replaced by up to 78 characters of the input transaction
being processed. A time stamp follows the input transaction data.
If the input transaction is missing, the following message appears: QMGR RC
NE 0, MSG. NOT AVAIL.
System Action: The input transaction identified by this message is deleted
from the system unless this message is preceded by the SUCCEEDED version of
message DFS550I.
Programmer Response: Correct the cause of the application program abend.
Terminal Operator Response: If this multi- segment message uses Message
Format Service to send a formatted screen with a SYSMSG field, only one
segment is sent at a time. Press PA1 to retrieve the remaining segments.
Master Terminal Operator Response: See message DFS554A, which always
follows this error message at the IMS master terminal. See message DFS550I
which might precede this message at the IMS master terminal.
Problem Determination: 4, 5, 6, 8, 10, 18, 19
Module: DFSFXC40
*****************************************************************************
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page