|
View previous topic :: View next topic
|
| Author |
Message |
Joe_Song Currently Banned New User
Joined: 22 Jan 2008 Posts: 53 Location: china
|
|
|
|
Want to write a tool to check whether the Job member name in a PDS is same with the Job name in the Job card.
Because somtime i need to copy (just can use cut and paste ) a job content from one PDS to another and make sure the name is same with the job card. So i want to write a tool to check automatically. Anyone can provide some info ? |
|
| Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You're not giving us much to go on. From your requirements, it seems to me that what you might want to do is to open a member of a PDS for edit, and then run an ISPF edit macro, which will perform the check and display some sort of error message if the member name and jobname don't match.
If that's not what you're thinking, then you need to provide more details. |
|
| Back to top |
|
 |
ofer71
Global Moderator

Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
I would go for REXX:
- Read the members list (LMMLIST or LISTDS)
- For each member, use VIEW with MACRO.
- Create a macro to read the first line and parse the jobname.
- Return the jobname (QUEUE or VPUT) and compare to the member name.
O. |
|
| Back to top |
|
 |
Joe_Song Currently Banned New User
Joined: 22 Jan 2008 Posts: 53 Location: china
|
|
|
|
| Hi, upstair, could u give some code ? i am not familiar about this. Thanks a lot. |
|
| Back to top |
|
 |
ofer71
Global Moderator

Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
No, I can't "give you some code", but there are many examples for each of the operations above.
O. |
|
| Back to top |
|
 |
Bill O'Boyle
CICS Moderator

Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Check the Assembler "EXTRACT" Macro, which can return the job-name and other pieces of data.
Regards,
Bill |
|
| Back to top |
|
 |
Joe_Song Currently Banned New User
Joined: 22 Jan 2008 Posts: 53 Location: china
|
|
|
|
| so how to compare the job name use command? |
|
| Back to top |
|
 |
|
|