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

Job hangs in input queue, screen is frozen


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

New User


Joined: 31 May 2007
Posts: 38
Location: America

PostPosted: Thu Oct 04, 2007 5:19 am
Reply with quote

hi,

I have a query screen. After I input the info and pressed enter, my screen is frozen.

I run /display user usr1 and i got.
Code:


     USER     USERID   ENQCT DEQCT   QCT
    usr1       usr1  65    54    11 ALLOC(L470    ) RESP-INP
    *07276/114426*



/display all, i got:

Code:


     REGID JOBNAME   TYPE  TRAN/STEP PROGRAM  STATUS           CLASS
        1 IMSAMSG1  TPE                      WAITING            1
          BATCHREG  BMP   NONE
          FPRGN     FP    NONE
          DBTRGN    DBT   NONE
          IMSADBRC  DBRC
          IMSADLI   DLS
    VTAM ACB OPEN          -LOGONS ENABLED
    IMSLU=DALVM1XX.IMSALU62  APPC STATUS=ENABLED
    OTMA GROUP=IMSGROUP  STATUS=ACTIVE
    APPLID=IMSACB    GRSNAME=         STATUS=DISABLED
    LINE ACTIVE-IN -    1 ACTIV-OUT -    0
    NODE ACTIVE-IN -    1 ACTIV-OUT -    0
    *07276/114607*



Can anyone please help me to find out why screen is not resonding?

Thanks.
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 Oct 04, 2007 5:41 am
Reply with quote

Hi - we need to see your code - your logic for getting your message and your logic for sending the screen. Remember that once you communicate - pressing any key - your message will be sent and you will need to handle that logic when you issue your GU for the message coming back. If you give us that info - then we can help.
Back to top
View user's profile Send private message
DST

New User


Joined: 31 May 2007
Posts: 38
Location: America

PostPosted: Thu Oct 04, 2007 7:24 am
Reply with quote

1. What is IMSAMSG1?
2. How can I get away from a frozen termianl?
3. Is there any way to debug the program?

Thanks.
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 Oct 04, 2007 7:38 am
Reply with quote

You are probably hung in response mode because you did not send and receive your message properly. You can get away from a frozen terminal by correcting your code. You will first need to recycle the region - hopefully it is a TEST region. Then you will need to tell us your program code so that we can help you debug it. Remember that once you hit a key, you are communicating with IMS. You are sending a message and hopefully you have coded logic in your program to receive it. You very obviously have erroneous code in your program. IMS is lost and cannot recover.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Thu Oct 04, 2007 12:38 pm
Reply with quote

Quote:
After I input the info and pressed enter, my screen is frozen.

What info you entered? How can we guess what you entered on the screen?

Quote:
1. What is IMSAMSG1?

This could be your online MPP region

Quote:
2. How can I get away from a frozen termianl?

Check whether your transaction Id, PSB etc are all up and running
Check whether your MPP region required for your application is up and running

Quote:
3. Is there any way to debug the program?

Yes there are many ways to debug the program like BTS, Xpeditor
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Thu Oct 04, 2007 12:50 pm
Reply with quote

Sandy Zimmer
I've a question for you.. in most of your posts your reply is
Quote:

Hi - we need to see your code
.
I'm little curious to know whether do you have so much time to go thru the full code and explain what is the issue?
Say suppose there is a program which is not issuing any DLI call but the subprogram issues DLI call, and for some weird reason main program is failing and what if your were given with the Main program with no DLI calls or sub program with DLI call which is working with no issues?

Also say if the program is 15000 lines of code will you be able to go thru the code?

Say the DBD or PSB is having issues, and the COBOL code has some issues but no DLI call errors - will you be looking at the COBOL code without looking at other database issue?
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 Oct 04, 2007 4:43 pm
Reply with quote

Devzee,

Yes! I am very good at IMS. I do not need to see the "moves" - I need to see the IMS code - the retrieval and sending of the message - that would be a start in this situation. If this particular problem were with either the PSB or DBD, DST would not be hung in response mode - he would not have gotten that far. Answer your question?
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Thu Oct 04, 2007 9:02 pm
Reply with quote

Devzee & Sandy: These kind of discussions via PM please.

As for the topic: TS should post all info needed. We could have a look at the IMS related coding and if that's ok then advise TS to look for something else like an endless loop. Exploring the MPP via BTS seems a good option to me.

To TS: please post your message processing code (MSG and SPA) as a first step to investigate.
Back to top
View user's profile Send private message
DST

New User


Joined: 31 May 2007
Posts: 38
Location: America

PostPosted: Fri Oct 05, 2007 4:13 am
Reply with quote

Since I don't own the codes. I have to modfy it before I can post it here.Because I am new to this world, my first thought was it must be something related to the setup or by posting some system message and you would lead me to the right path.

Thanks!
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Fri Oct 05, 2007 9:03 am
Reply with quote

Quote:
George
IF necessary delete my post
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Sat Oct 06, 2007 1:34 am
Reply with quote

Devzee: not necessary icon_wink.gif

TS: how can it be you enter /dis command when your screen is frozen? My guess is your program is waiting for input. As stated before we need to have a look at you messagequeue processing.

Quote:
1 IMSAMSG1 TPE WAITING 1
Back to top
View user's profile Send private message
DST

New User


Joined: 31 May 2007
Posts: 38
Location: America

PostPosted: Sat Oct 06, 2007 8:40 am
Reply with quote

please explain what is MSG and SPA? how can I get them?
Also, if I have a screen frozen, how can I "re-boot" that termial in order for me to use that termial and user ID again? I am currently using another ID to get the statu info.

Thanks.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Sat Oct 06, 2007 2:18 pm
Reply with quote

/stop and /start. follow the first link in my signature and search for /stop and /start.

Do you kow anything at all about IMS/DC?

An MPP (message processing program) comunicates with users via messages; it receives a message, processes it and sends a message back to the terminal. Intermediate results are stored in the SPA (Scratch Pad Area) which is created for each terminal communicating with one single occurrence of an MPP.

Before working with IMS/DC you should be well trained.
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

 


Similar Topics
Topic Forum Replies
No new posts COBOL sorting, with input GDG base COBOL Programming 7
No new posts External data queue (changes?) CLIST & REXX 0
No new posts Concatenate 2 input datasets and give... JCL & VSAM 2
No new posts Reflection 3270 screen shows only 23 ... Compuware & Other Tools 6
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
Search our Forums:

Back to Top