In this Mainframe Forum - You can post your queries on DFSORT, ICETOOL , SyncSort & JCL Utilities
Moderators: Frank Yaeger , Moderator Group
simo78
Member
Posts: 35 Joined: Tue Aug 11, 2009 12:20 am
Location: Munich
Post
by simo78 » Sat Feb 01, 2014 8:06 pm
Hi,
I've a PDS with the following content:
Code: Select all
//*JOB1
/mydir/path1/file1.txt;MYJOB1
//*JOB2
/mydir/path1/file2.txt;MYJOB2
//*JOB3
/mydir/path2/file3.txt;MYJOB3
How can I submit i.e. MYJOB2 if the string I've to search is "/mydir/path1/file2.txt"?
With REXX I would be able to do this but probably it's better to do it with
DFSORT but I don't know how.
Any help is appreciated.
Thanks.
DikDude
Moderator
Posts: 1001 Joined: Fri Jul 22, 2011 8:39 am
Location: usa
Post
by DikDude » Sun Feb 02, 2014 10:01 am
You have not posted much that can be used to help you . . .
Where do these "jobs" reside?
Is the info posted different members in a pds or are these something else (i.e. all in one member, whatever)?
The info posted is not valid for mainframe dataset names.
Have a good one
simo78
Member
Posts: 35 Joined: Tue Aug 11, 2009 12:20 am
Location: Munich
Post
by simo78 » Sun Feb 02, 2014 2:40 pm
Hi DikDude,
sorry my dsn should look like this
Code: Select all
//*JOB1
/mydir/path1/file1.txt;MY.LIBRARY(MYJOB1)
//*JOB2
/mydir/path1/file2.txt;MY.OTHER.LIBRARY(MYJOB2)
//*JOB3
/mydir/path2/file3.txt;MY.LIBRARY(MYJOB3)
NicC
Active Member
Posts: 650 Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm
Post
by NicC » Sun Feb 02, 2014 4:01 pm
As far as I am aware sort does not have a submit facility. Also, as far as I am aware, it cannot read a datasetname from an input record and use that to open that dataset. You could possibly use it to build the JCL for a second job that will be able to read that dataset and write it to the internal reader. But, keep with the KISS principle and use your rexx program (or any other language that can do the job).
Regards
Nic
sagarhaele
Member
Posts: 3 Joined: Mon Feb 17, 2014 11:12 am
Post
by sagarhaele » Mon Mar 24, 2014 8:40 am
To create a search string that will find jobs that exactly match what you want. This will allows you to find and run the search again anytime you want.
NicC
Active Member
Posts: 650 Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm
Post
by NicC » Mon Mar 24, 2014 1:35 pm
That makes no sense but perhaps the point was to just post that illegal url in the signature?
Regards
Nic
DikDude
Moderator
Posts: 1001 Joined: Fri Jul 22, 2011 8:39 am
Location: usa
Post
by DikDude » Mon Mar 24, 2014 9:26 pm
Hi Nic,
The "signature" link has been removed from the post. sagarhaele needs to change change the content of the signature in the profile.
Yup, what was posted tells me nothing i can use to help.
Possibly sagarhaele will clarify . . [/b]
Have a good one
Free tutorials from mainframegurukul
JCL Tutorial Covers all important JCL concepts.
Cobol Tutorial This tutorials covers all Cobol Topics from STRING to COMP-3.
DB2 Tutorial DB2 Tutorial focuses on DB2 COBOL Programming.
SORT Tutorial This Tutorial covers all important aspects of DFSORT with examples
CICS Tutorial This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Mainframe Interview questions
Mainframe Tools and others