I am new to this Forum. This site is really very Useful. I faced the foll questions.
1. How to Initialize the MAP variables?
2. Why should we SET MDT to ON?
3. What is the last Statement in JCL?
4. In Vsam i am doing one Process repeatedly like I have to DEFINE the file, READ and after the Process over DELETE the file? In this i have to refer my Input FILE only once, How?
5. I have created one Vsam file and i am goign to use it in the APplication as an EMPTY file? How will u handle this situation?
6. I want to compile my pgm, but my load module name should be the Program id of the Program?
I said in LKED.SYSLMOD we can give the name whatever we want, but he didn't accept.
7. In COBOL+DB2, while compiling at which step DB2 SUBSYSTEM should be up?
I am new to this Forum. This site is really very Useful. I faced the foll questions.
1. How to Initialize the MAP variables?
2. Why should we SET MDT to ON?
3. What is the last Statement in JCL?
4. In Vsam i am doing one Process repeatedly like I have to DEFINE the file, READ and after the Process over DELETE the file? In this i have to refer my Input FILE only once, How?
5. I have created one Vsam file and i am goign to use it in the APplication as an EMPTY file? How will u handle this situation?
6. I want to compile my pgm, but my load module name should be the Program id of the Program?
I said in LKED.SYSLMOD we can give the name whatever we want, but he didn't accept.
7. In COBOL+DB2, while compiling at which step DB2 SUBSYSTEM should be up?
Thanks,
Megalai.
hai Megalai, the following queries may help you.
1. Move LOW-VALUES or HIGH-VALUES to the MAP+I.
2. There are more than one way to set the MDT on. You can move input values to the field. You can also set by moving LOW-VALUES or HIGH-VALUES to them. also there are some other ways too. please refer to the manuals for more info.
3. The last statement should be a null statement to mark the end of job stream.
4. You open the file in I-O mode. this should serve for reading and deleting.
5. Please give a more clear picture.
6. Please give a more clear picture. We use CHGMAN in our floor which porduces the Load in the same name of the source.
7. It is enough if the DB2 subsystem is up after precompilation. Precompile will not bomb if the DB2 sub system is not up.
Joined: 23 Dec 2005 Posts: 61 Location: Providence , US
Hi there ,
Megalai wrote:
6. I want to compile my pgm, but my load module name should be the Program id of the Program?
I said in LKED.SYSLMOD we can give the name whatever we want, but he didn't accept.
solution:
Use the override as given below:
LKED.SYSLMOD DD DISP=SHR,
DSN=YOURRUNLIB.LOAD(YOUR PROGRAM NAME)
With this override run your job ; the load module will be created with the program name or whatever name you have mentioned in the overrided step .
Hi,
1. If you are using BMS macros to create your map, you could initialize using " INITIAL = ".
2. why, because only then you could recieve the changes done by the user, so that it could reflect in the database.
4. In this case, you could make use of either TSQ or TDQ to perform this.
5. VSAM itself automatically handles by writing in a dummy record into the file, if it is opened first time in OUTPUT Mode.
7.If you quote VALIDATE parameter in your BIND jcl as BIND, DB2 need tobe up during bind time, else if you code it as RUN, then it's necessary tobe up during RUN time. i.e it depends on VALIDATE parameter.
With 3 and 6, our friends came up with correct answer.
Hope this helps....