Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Want to write a tool to check the JOB name

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Joe_Song
Currently Banned

New User


Joined: 22 Jan 2008
Posts: 53
Location: china

PostPosted: Fri Feb 01, 2008 7:59 pm    Post subject: Want to write a tool to check the JOB name
Reply with quote

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
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Feb 01, 2008 8:21 pm    Post subject: Reply to: Want to write a tool to check the JOB name
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Sat Feb 02, 2008 2:22 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Joe_Song
Currently Banned

New User


Joined: 22 Jan 2008
Posts: 53
Location: china

PostPosted: Sat Feb 02, 2008 2:31 pm    Post subject: Hi
Reply with quote

Hi, upstair, could u give some code ? i am not familiar about this. Thanks a lot.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Sat Feb 02, 2008 5:43 pm    Post subject:
Reply with quote

No, I can't "give you some code", but there are many examples for each of the operations above.

O.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Sat Feb 02, 2008 8:47 pm    Post subject: Want to write a tool to check the JOB name
Reply with quote

Check the Assembler "EXTRACT" Macro, which can return the job-name and other pieces of data.

Regards,

Bill
Back to top
View user's profile Send private message
Joe_Song
Currently Banned

New User


Joined: 22 Jan 2008
Posts: 53
Location: china

PostPosted: Mon Feb 04, 2008 2:47 pm    Post subject: still have one question
Reply with quote

so how to compare the job name use command?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts Write R1 and R2 to OP1 and R1 to OP2 bhaskar_kanteti DFSORT/ICETOOL 10 Fri Mar 03, 2017 11:18 am
No new posts Can you write 2 recs on SORTOUT when ... Sysaron DFSORT/ICETOOL 6 Thu Feb 23, 2017 12:07 am
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us