|
View previous topic :: View next topic
|
| Author |
Message |
anilkumar922
New User
Joined: 27 Jun 2016 Posts: 13 Location: india
|
|
|
|
Hi All,
I've once scenario, Where i'm using SORT function.
For SORT i have to give input file name which resides in another PDS file.
How we can access FILE NAME from EXTERNAL FILE for SORT.
Is there any other ways to achieve this scenario.
Ex:
SORTIN DD DSN=ABC.XX, DISP=SHR (EXTERNAL FILE)
SORTOUT DD DSN=OUTPUT.XX
ABC.XX
===========
This file have records of GDG version names.
DEF.XX.G123V00
I've to replace ABC.XX file record value in above SORT FUNCTION INPUT dataset.
Please help me to find out the ways to achieve this.
Thanks in Advance,
Kumar. |
|
| Back to top |
|
 |
prino
Senior Member

Joined: 07 Feb 2009 Posts: 1323 Location: Vilnius, Lithuania
|
|
|
|
| Tell your PHB that this is not possible, unless you actually use a program to generate JCL and use the internal reader to submit it. |
|
| Back to top |
|
 |
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
| Examples abound in the sort sections of the forum. And please note that they are data sets not "files". |
|
| Back to top |
|
 |
|
|