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

U0260 abend while passing data from IMS screen into pgm


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
t5590ag

Active User


Joined: 21 May 2009
Posts: 139
Location: United States

PostPosted: Thu Nov 19, 2009 6:45 pm
Reply with quote

yes Sandy, QC was there. I just skipped that condition, anyways I have to put it later. but if it abends at CBLTDLI call only then I dont even get a chance to check the status.
Back to top
View user's profile Send private message
t5590ag

Active User


Joined: 21 May 2009
Posts: 139
Location: United States

PostPosted: Thu Nov 19, 2009 6:55 pm
Reply with quote

Hello Sandy. I just gt it solved. The problem was with the function-codes include. It was placed in the linkage section. Should be in Working storage. When I went to debug it showed me that Function-GU itself is invalid...! Am thankful and sorry as well as I feel that this was time wasted over a stupid miss.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Thu Nov 19, 2009 6:58 pm
Reply with quote

If you learned something - no time was wasted! The best way to learn is problem solving.
Back to top
View user's profile Send private message
t5590ag

Active User


Joined: 21 May 2009
Posts: 139
Location: United States

PostPosted: Thu Nov 19, 2009 7:06 pm
Reply with quote

right Sandy. But I still have that doubt with entry statement. why at that time was my PCB not read ? Though I'll check that again with the running code now and get back to you.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Thu Nov 19, 2009 7:09 pm
Reply with quote

Can you scan your COBOL libraries and look for anything that has the "entry" statement? Then scan again looking for "procedure division using". If you are NOT a subroutine - you need the entry statement.
Back to top
View user's profile Send private message
t5590ag

Active User


Joined: 21 May 2009
Posts: 139
Location: United States

PostPosted: Thu Nov 19, 2009 7:14 pm
Reply with quote

Hmm.. I have a thought . If we transfer control from one screen to another using PF keys what would that need ? Procedure division using will be needed or its only for sybroutine thing ? Cos may be that the reason for using "Procedure Division USING". Is it a case?
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Thu Nov 19, 2009 7:14 pm
Reply with quote

In addition, when you are a subroutine in an IMS DC environment, you should not call your subroutine dynamically - too much overhead - you would link statically. I saw an installation that every IMS program was a subroutine of a "main" program. They linked statically, so everytime a change was made, they had to run THE BIG LINK to re-link everything. Look at your compile JCL. Their system ran like a turtle.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Thu Nov 19, 2009 7:24 pm
Reply with quote

Hmm.. I have a thought . If we transfer control from one screen to another using PF keys what would that need ? Procedure division using will be needed or its only for sybroutine thing ? Cos may be that the reason for using "Procedure Division USING". Is it a case?


NO - I have processed as many as 10 screens - maybe more - in 1 COBOL program with 1 transaction and 1 PSB. When you get to that point, I will help you. Now, if you chose to process those screens as separate sub-routines - you would use procedure-division-using, but you would always have an ENTRY statement in the main program that retrieves your message.
Back to top
View user's profile Send private message
t5590ag

Active User


Joined: 21 May 2009
Posts: 139
Location: United States

PostPosted: Thu Nov 19, 2009 9:39 pm
Reply with quote

Now it worked Sandy I have assigned the task to other guy. But will you say that ims-cobol wont work with a procedure division using and without an entry statement ? cos entry didnt make any difference.I need to read abt these two.dont know about entry much.

10 screen with different layouts in single program ? am just trying to get how? Did you use the tran name or some other key field coming from screen to differentiate for which part of code to process ? but what about the MFS ? ok they should have different MFS I understand all pointing towards a single pgm but is that possible?
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Thu Nov 19, 2009 10:16 pm
Reply with quote

I used the same tran - same main program - from the main program user was able to select function. In my main program, I determined what they had selected and processed accordingly. I had several MFS - different names tied to the same transaction. It is possible - I did it!

You should read everything you can about HOW IMS works. Again - if you are NOT a subroutine - you NEED an entry statement.
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Thu Nov 19, 2009 10:23 pm
Reply with quote

One little tip - try to get away from device dependent coding. For one instance try to not use PFK logic. Make the user say "Y" or "N" or select a number. And, I never saw a device in a PSB. You want your application to function wherever.
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 -> IMS DB/DC Goto page Previous  1, 2, 3  Next

 


Similar Topics
Topic Forum Replies
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts ISAM and abend S03B JCL & VSAM 9
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top