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
 
BPXBATCH , Need Help

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

New User


Joined: 10 Mar 2011
Posts: 39
Location: india

PostPosted: Fri Apr 12, 2019 2:56 pm    Post subject: BPXBATCH , Need Help
Reply with quote

I have Mainframe GDG . at the end of the file I need to append .XFR and send to specific path file.

Please let us know what will be unix script for this to run in BPXBATCH

input : TEST.TEST1.G00V100
OUTPUT : TEST.TEST1.G00V100.XFR
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


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

PostPosted: Fri Apr 12, 2019 6:27 pm    Post subject: Reply to: BPXBATCH , Need Help
Reply with quote

Quote:
at the end of the file I need to append .XFR

Do you mean you need to append .XFR to the data set name? What you have written implies that you want a record wth the contents '.XFR' as the last record in the DATA SET.
Back to top
View user's profile Send private message
dharmaraok

New User


Joined: 10 Mar 2011
Posts: 39
Location: india

PostPosted: Tue Apr 23, 2019 12:14 pm    Post subject:
Reply with quote

I need to append .XFR to the dataset name not at the end of the records.
is it possible in BPXBATCH Utility
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8784
Location: Welsh Wales

PostPosted: Tue Apr 23, 2019 12:27 pm    Post subject:
Reply with quote

If the GDG is created on the mainframe, why do you need to rename it with a UNIX process ?

Wouldn't a mainframe utility be the way to go ?
Back to top
View user's profile Send private message
dharmaraok

New User


Joined: 10 Mar 2011
Posts: 39
Location: india

PostPosted: Tue Apr 23, 2019 12:43 pm    Post subject:
Reply with quote

At present we are using Micfro Focus Cobol . So all the Mainframes files will be generated with .DAT extension.

So I need to convert the .DAT conversion to .XFR extension and to be placed in Unix Server Path.

please let me how to do is with unix script So that i can run script with BPXBATCH utility
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8784
Location: Welsh Wales

PostPosted: Tue Apr 23, 2019 12:56 pm    Post subject:
Reply with quote

Have you looked into this yourself ?
To rename a file using a UNIX command is easy enough, I googled it when I first needed to use it, so what is the problem.

Your explanation after some questions leads to a completely different scenario to that first given. PLEASE - do learn to give the full story from the outset as this can avoid problems later down the line.

From what I can now understand from your additional comments, the input would be TEST.TEST1.G00V100.DAT and this needs to end up as TEST.TEST1.G00V100.XFR, which is not your original description.
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 292
Location: Denmark

PostPosted: Tue Apr 23, 2019 1:56 pm    Post subject:
Reply with quote

I agree with expat, since you are looking for a batch job solution, why limit yourself to BPXBATCH? Other utilities like IEBGENER or ADRDSSU can copy datasets. If you need to locate the latest dataset then a REXX based solution would be my choice.
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 '-c ' in STDOUT of BPXBATCH Ronin. TSO/ISPF 8 Fri Jul 11, 2014 6:09 am
No new posts BPXBATCH output Grant Goodale All Other Mainframe Topics 12 Fri Jun 06, 2014 6:19 am
No new posts BPXBATCH access problem tuxama JCL & VSAM 2 Fri Apr 26, 2013 12:35 pm
No new posts BPXBATCH PARM TOO LONG abhijit.nayak01 All Other Mainframe Topics 10 Fri Jan 27, 2012 5:07 pm
No new posts BPXBATCH Rexx Shell Script Return Code drowelf All Other Mainframe Topics 1 Mon Aug 15, 2011 5:42 am

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