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

ACESSING THE FILE NAME FROM ANOTEHR EXTERNAL FILE


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anilkumar922

New User


Joined: 27 Jun 2016
Posts: 13
Location: india

PostPosted: Fri Mar 02, 2018 4:00 pm
Reply with quote

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

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Fri Mar 02, 2018 4:46 pm
Reply with quote

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

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Fri Mar 02, 2018 6:46 pm
Reply with quote

Examples abound in the sort sections of the forum. And please note that they are data sets not "files".
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
Search our Forums:

Back to Top