View previous topic :: View next topic |
Author |
Message |
madhuroyus Beginner
Joined: 09 Jan 2006 Posts: 45 Topics: 14 Location: Bangalore
|
Posted: Mon Apr 03, 2006 5:01 am Post subject: Max length of a parm |
|
|
Hi,
I had faced two interview questions which i don't know.
1) what is the max length of a parm that we can pass from a jcl to a program.
2)what are all the ways we can pass memory from one cics prgm to another cics prgm apart from TSQ and DFHCOMMAREA.
Thanks
Madhu _________________ Self confidence is something that says U will do it, when the rest of the world has exactly opposite view. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
madhuroyus Beginner
Joined: 09 Jan 2006 Posts: 45 Topics: 14 Location: Bangalore
|
Posted: Mon Apr 03, 2006 6:51 am Post subject: |
|
|
Hi Kolusu,
Thanks for your quick reply.
Can you please let me know the answer for second question.
Thanks
Madhu _________________ Self confidence is something that says U will do it, when the rest of the world has exactly opposite view. |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Mon Apr 03, 2006 9:56 am Post subject: |
|
|
Just a quick follow-up to Question #1. Many folks seem to infer that because the JCL limit for the PARM= statement is 100 characters that the same is true for the program. That is not the case, as the program will accept a length much greater for the parameter(s). |
|
Back to top |
|
|
madhuroyus Beginner
Joined: 09 Jan 2006 Posts: 45 Topics: 14 Location: Bangalore
|
Posted: Thu Apr 06, 2006 3:25 am Post subject: |
|
|
Hi Superk,
I couldn't understand the explanation you mentioned.
Can you please explain it clearly?
Thanks
Madhu _________________ Self confidence is something that says U will do it, when the rest of the world has exactly opposite view. |
|
Back to top |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Thu Apr 06, 2006 3:31 am Post subject: |
|
|
Madhuroyus,
Superk Said:
Quote: |
Just a quick follow-up to Question #1. Many folks seem to infer that because the JCL limit for the PARM= statement is 100 characters that the same is true for the program. That is not the case, as the program will accept a length much greater for the parameter(s).
|
The program can accept much greater length as parm thro' the linkage section (Whatever data you pass via linkage is called PARM). For example, when you call any sub-program - the amount of data that you normally pass via linkage will be > 100 bytes.
But JCL has a limitation - it cannot pass more than 100 bytes to the cobol program that it invokes.
Hope I'm clear.
Cheers,
Phantom |
|
Back to top |
|
|
madhuroyus Beginner
Joined: 09 Jan 2006 Posts: 45 Topics: 14 Location: Bangalore
|
Posted: Thu Apr 06, 2006 3:33 am Post subject: |
|
|
Hi Phantom,
Thanks a ton.
Its very clear to me.
Can you please give me some info on my second question also.
Thanks
Madhu. _________________ Self confidence is something that says U will do it, when the rest of the world has exactly opposite view. |
|
Back to top |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Fri Apr 07, 2006 12:36 am Post subject: |
|
|
Madhu,
Using Pointers is one more option wherein you don't pass the entire bunch of data between two programs. Pointers are used to save the amount of memory used by a program and also to cut down on the amount of data transferred b/w two programs - finally to improve program efficiency/productivity.
I have seen few programs using this pointer concept - but was a bit lazy to explore on those. I will probably try to find out an example for you.
Thanks,
Phantom |
|
Back to top |
|
|
madhuroyus Beginner
Joined: 09 Jan 2006 Posts: 45 Topics: 14 Location: Bangalore
|
Posted: Fri Apr 07, 2006 4:18 am Post subject: |
|
|
Hi Phantom,
Thanks for your efforts.
I know we can share memory thru DFHCOMMAREA,TSQ,TDQ and pointers, but I heard from interviwer that there is around 7 ways where we can share memory.
I will let u know in case if find more on this.
Thanks
Madhu _________________ Self confidence is something that says U will do it, when the rest of the world has exactly opposite view. |
|
Back to top |
|
|
|
|