IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Want to write a tool to check the JOB name


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Fri Feb 01, 2008 8:21 pm
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: 2358
Location: Israel

PostPosted: Sat Feb 02, 2008 2:22 pm
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
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: 2358
Location: Israel

PostPosted: Sat Feb 02, 2008 5:43 pm
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Sat Feb 02, 2008 8:47 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Error while running web tool kit REXX... CLIST & REXX 5
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
Search our Forums:

Back to Top