View previous topic :: View next topic
|
Author |
Message |
axiskumar
New User
Joined: 05 Dec 2005 Posts: 4 Location: india
|
|
|
|
Hi All,
Please answer the below questions if know ...
1) How to pass more than one record in SYSIN DD *
If you pass more than one , how can we obtain the data in program
2) How to know if somebody log in CICS Region or not
Any command? to know this
3) How to concatinate two diff VB vsam files.
4) I need to copy the GDG to flat file after creation for back up, the job.At max we can generate 250 generations , if more than 250 generations, the oldest or all will delete, but I need to copy those also to sequential files.
HOw we can achive this?
5) can we send file in sysin dd *
6) can we mention executable copy books in COMPILATION JCL
7) I have requirement to increase the lengh of the perticular filed from pc 5 to pic 8. I need to change this change for 300 programs , how can I change this one time?
8) IN CICS PF7 LOGIC?
9) I have a set of sql staments in one member, How can i use this member in cobol-db2 program? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
1. Put more than one record in the SYSIN. The record(s) are passed by the program opening SYSIN for input and reading them.
2. Look at the log to see if they signed on. Custom code can be written to determine who's logged onto a region but there's no simple command to give you this; you can identify current tasks but that only helps if the person's running a task at that moment.
3. The JCL Reference manual specifically says concatenation is for sequential or PDS files only. VSAM files cannot be concatenated.
4. Use GDG base name, which allows you to copy all generations. Once they've rolled off the GDG, they are typically deleted from the system so you cannot then back them up.
5. SYSIN is for input to a program, including system utilities. You cannot "send file" or do anything except read that data into a program.
6. Compilation JCL means you're talking about source. Source becomes executable but cannot directly refer to the executable data.
7. Use the change tool for the source code version control package you use.
8. EIBAID will be set if PF7 is hit. What your program does with this information is up to the program.
9. I don't use DB2 so no idea on this one. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
4) I need to copy the GDG to flat file after creation for back up, the job.At max we can generate 250 generations , if more than 250 generations, the oldest or all will delete, but I need to copy those also to sequential files. |
What happens to the GDG generations when the limit is reached depends on the GDG base definition parameter EMPTY / NOEMPTY.
Once again, although Robert is perfectly correct in his description of the GDG being rolled off and deleted, but this can be changed if the NOSCRATCH parameter is used in the GDG base definition. Although this is not usually the case, I have had to deal with the mess of badly defined GDG's in the past |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Good point expat, I've had to deal with those issues as well. And they're not a lot of fun ... at least I did say "typically"!
Although I still wonder what
Quote: |
the oldest or all will delete, but I need to copy those also to sequential files. |
means in terms of "all will delete", and if they're deleted just how the O/P expects to copy them to sequential files. Which raises the question of just what the O/P thinks a GDG is, if not a sequential file? Let's not go there ... too early on a weekend for that kind of question! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
at least I did say "typically" |
Yes, I noticed, and have plagerised that one into the CMA folder |
|
Back to top |
|
|
|