View previous topic :: View next topic
|
Author |
Message |
t5590ag
Active User
Joined: 21 May 2009 Posts: 139 Location: United States
|
|
|
|
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 |
|
|
t5590ag
Active User
Joined: 21 May 2009 Posts: 139 Location: United States
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
If you learned something - no time was wasted! The best way to learn is problem solving. |
|
Back to top |
|
|
t5590ag
Active User
Joined: 21 May 2009 Posts: 139 Location: United States
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
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 |
|
|
t5590ag
Active User
Joined: 21 May 2009 Posts: 139 Location: United States
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
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 |
|
|
t5590ag
Active User
Joined: 21 May 2009 Posts: 139 Location: United States
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
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 |
|
|
|