Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
ACESSING THE FILE NAME FROM ANOTEHR EXTERNAL FILE

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

New User


Joined: 27 Jun 2016
Posts: 9
Location: india

PostPosted: Fri Mar 02, 2018 4:00 pm    Post subject: ACESSING THE FILE NAME FROM ANOTEHR EXTERNAL FILE
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: 1105
Location: Oostende, Belgium

PostPosted: Fri Mar 02, 2018 4:46 pm    Post subject:
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: 2012
Location: UK

PostPosted: Fri Mar 02, 2018 6:46 pm    Post subject:
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    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 BAMAD file IO Error m1985nehal CICS 1 Fri May 25, 2018 11:51 am
No new posts Process file after 7 days of hold charlessxavier All Other Mainframe Topics 4 Tue May 22, 2018 3:54 pm
No new posts TRAILER3 is creating blank record in ... kodeesm DFSORT/ICETOOL 3 Fri May 18, 2018 5:45 pm
No new posts Transfer of mainframe file to PC in Z... maxsubrat JCL & VSAM 4 Thu May 17, 2018 11:35 am
No new posts Rexx command to open an another text ... Bharath Vikraman PC Guides & IT News 7 Sat May 12, 2018 4:34 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us