Parm limit
Moderators: Frank Yaeger, DikDude, Moderator Group
Parm limit
I need to send around 300 different values to the cobol program via parm card. I was thinking of using a file. What is the maximum limit of the Parm? I checked the forum and found that the limit is 100. Will that be applicable to the file also? In my requirement it is specifically mentioned to use parm. Are there any sample JCLs and COBOL codes to show Parm using files? Please help..
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
PARM has a specifc meaning when you talk about "Passing PARM to COBOL Program". The limit is 100 charachters.
Perhaps, you work by using SYSIN as described in this link apart from many other available on this Forum.
Perhaps, you work by using SYSIN as described in this link apart from many other available on this Forum.
Regards,
Anuj
Anuj
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
Well, I think you'll have to copy out/paste the bit from your specification.
With PARM, you can pass up to 100 characters to a program specified on the PGM=, as long as that program defines it correctly in the LINKAGE SECITON and on the PROCEDURE DIVISION USING.
Can you pass "a file", no. Can you pass a dataset-name, yes, but then it is up to you to do something to be able to read it.
With PARM, you can pass up to 100 characters to a program specified on the PGM=, as long as that program defines it correctly in the LINKAGE SECITON and on the PROCEDURE DIVISION USING.
Can you pass "a file", no. Can you pass a dataset-name, yes, but then it is up to you to do something to be able to read it.
It sounds as though your "requirement" is incorrect or maybe it is just misunderstood.My requirement specifically asks for a file to be passed from JCL to COBOL using PARM.
As WC mentioned, you need to post this part of your requirement.
Then we may be able to offer alternative, acceptable suggestions.
Have a good one
NicC, its the latter option that is I have to pass parameters in a dataset.
In the requirements they had used the word PARM card and file, hence the confusion.
As you have mentioned it is an input file to be read in the program.
Got to know about it today.
Just curious on how a dataset name passed works??
how the content of the dataset shoul be?
In the requirements they had used the word PARM card and file, hence the confusion.
As you have mentioned it is an input file to be read in the program.
Got to know about it today.
Just curious on how a dataset name passed works??
how the content of the dataset shoul be?
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
Anuj,
Notice that I more or less declined to be drawn on the dynamic allocation question!
As to the second point, too many (up to 300) parameters need to be passed, The only real way is to read them in from a dataset. A lot of parms (they probably are not parms in the real sense of the word) but some windoze programs have zillions (ok, quite a few) - just look at their init files - all those things sectioned off by []s
Notice that I more or less declined to be drawn on the dynamic allocation question!
As to the second point, too many (up to 300) parameters need to be passed, The only real way is to read them in from a dataset. A lot of parms (they probably are not parms in the real sense of the word) but some windoze programs have zillions (ok, quite a few) - just look at their init files - all those things sectioned off by []s
Regards
Nic
Nic
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
Hi Nic,
Yes, I noticed that. However, the other query should have come in a new thread from OP. We don't have a(n) (active) Moderator for this part of the Forum otherwise it could have been splitted. Possibly we'll get one soon.
I'm stiil bit confused with the request from OP, I'll observe this thread slowly now.
Yes, I noticed that. However, the other query should have come in a new thread from OP. We don't have a(n) (active) Moderator for this part of the Forum otherwise it could have been splitted. Possibly we'll get one soon.
I'm stiil bit confused with the request from OP, I'll observe this thread slowly now.
Last edited by Anuj Dhawan on Thu Aug 16, 2012 9:26 am, edited 1 time in total.
Regards,
Anuj
Anuj
My take was that the enquiry re dynamic allocation came about because I mentioned that it would be needed IF the parameter was a dataset name containing the actual parms and that TS was only asking "I've never heard of dynamic allocation - what can you tell me about it. Just out of interest." However, it would appear that there is, now, no parameter being passed by way of JCL.
Regards
Nic
Nic
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page