Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : All available storage is assigned to the job or jobstep, If REGION is coded 0K or 0M

Google
 
Web mainframegurukul.com

SPA SIZE ISSUE

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> IMS DB
  View previous topic :: View next topic  
Author Message
sivasaras
Member


Joined: 15 Jun 2010
Posts: 43

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Mar 07, 2012 9:56 pm    Post subject: SPA SIZE ISSUE Reply with quote

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
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.

dbzTHEdinosauer
Moderator


Joined: 02 Oct 2006
Posts: 975

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Mar 07, 2012 10:45 pm    Post subject: Reply with quote

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.
_________________
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 1631
Location: Mumbai, India

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Thu Mar 08, 2012 6:29 pm    Post subject: Reply with quote

SPA is Scratch Pad Area, this is area from where user get/put data while working with IMS DC.

I'm not sure what's the problem here, however, if one is using SPA , first GU should be for SPA, & first ISRT should be for SPA, the next GU/ISRT should be for actual segment.
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
dbzTHEdinosauer
Moderator


Joined: 02 Oct 2006
Posts: 975

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Thu Mar 08, 2012 7:41 pm    Post subject: Reply with quote

thx Anuj,

it seemed as if he was using it like a dfhcommarea.

whatever, he is making it far to complicated.
_________________
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 1631
Location: Mumbai, India

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Mar 09, 2012 3:33 pm    Post subject: Reply with quote

No problem Big B. However, to be honest I just did not understand what he is asking!
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
dbzTHEdinosauer
Moderator


Joined: 02 Oct 2006
Posts: 975

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Mar 09, 2012 4:10 pm    Post subject: Reply with quote

TS has not bothered to return for two days,
i will lock this thread tomorrow.
_________________
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
sivasaras
Member


Joined: 15 Jun 2010
Posts: 43

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Mar 09, 2012 7:39 pm    Post subject: Reply with quote

Hi,

Sorry for the late reply.

My problem is while pressing PF8 third time it is displaying the first 13 components again instead of displaying the last components.

Pleae guide me

Thanks
Siva
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
dbzTHEdinosauer
Moderator


Joined: 02 Oct 2006
Posts: 975

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Mar 09, 2012 8:09 pm    Post subject: Reply with quote

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<<<<<<<<<maybe this line?
_________________
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
sivasaras
Member


Joined: 15 Jun 2010
Posts: 43

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Mar 09, 2012 8:43 pm    Post subject: Reply with quote

My problem is solved.

I have given Endif after the each press count and it is working fine.

Thanks
Siva
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
sivasaras
Member


Joined: 15 Jun 2010
Posts: 43

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Mon Mar 12, 2012 9:47 pm    Post subject: Reply with quote

Hi,

If the fields are more than 42 then it is showing Error in the screen.

only upto 42 fields it is accepting.

please guide me

Thanks
Siva
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
NicC
Active Member


Joined: 24 Jul 2011
Posts: 651
Location: Down on the pig farm

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Tue Mar 13, 2012 12:28 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
sivasaras
Member


Joined: 15 Jun 2010
Posts: 43

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Mar 28, 2012 7:22 pm    Post subject: Reply with quote

Hi,

I am getting IMs error in the online screen while pressing PF8.

when the account number exceeds 41 components it is showing the eror.

Thanks
Siva
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
sivasaras
Member


Joined: 15 Jun 2010
Posts: 43

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Mar 28, 2012 7:26 pm    Post subject: Reply with quote

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

*****************************************************************************
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
academyindia4
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Sat Jan 30, 2016 10:25 pm    Post subject: Topic deleted by Admin Reply with quote

<< Content deleted By Admin >>
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> IMS DB All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Query For IEBPTPCH 3 padmajeet.gaikwad 13445 Mon Feb 01, 2016 10:56 pm
academyindia4 View latest post
No new posts Unable to achieve below scenario using ICETOOL 27 sirianangel 33683 Mon Feb 01, 2016 10:01 pm
academyindia4 View latest post
No new posts Need to put records a Sorting order as mentioned below. 14 Yash1911 12633 Mon Jan 25, 2016 9:50 pm
academyindia4 View latest post
No new posts how to deal with the below scenario using iebgener 7 mainframes_6002 11170 Wed Dec 07, 2011 10:34 am
DikDude View latest post
No new posts Coulu someone explain the parameters in the below code? 1 lovely sweety 11352 Thu Jun 09, 2011 3:50 pm
dbzTHEdinosauer View latest post
 


Cobol Tutorial
This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial
This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial
This Tutorial covers all important aspects of DFSORT. Has more SORT examples
INTERVIEW Questions
This page covers important interview questions
Mainframe Jobs
Mainframe Jobs posted by members of mainframegurukul forum
FaceBook Page
MainframeGurukul FaceBook Page
LinkedIn Page
MainframeGurkul Linkedin Page

This widget requires Flash Player 9 or better







Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials || Mainframe CICS tutorial|| Mainframe COBOL Tutorial

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB

mainframetopic-6344.html