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

BPXBATCH , Need Help


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

New User


Joined: 10 Mar 2011
Posts: 45
Location: india

PostPosted: Fri Apr 12, 2019 2:56 pm
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: 2455
Location: Hampshire, UK

PostPosted: Fri Apr 12, 2019 6:27 pm
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: 45
Location: india

PostPosted: Tue Apr 23, 2019 12:14 pm
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: 8797
Location: Welsh Wales

PostPosted: Tue Apr 23, 2019 12:27 pm
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: 45
Location: india

PostPosted: Tue Apr 23, 2019 12:43 pm
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: 8797
Location: Welsh Wales

PostPosted: Tue Apr 23, 2019 12:56 pm
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 Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Tue Apr 23, 2019 1:56 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts '-c ' in STDOUT of BPXBATCH TSO/ISPF 8
No new posts BPXBATCH output All Other Mainframe Topics 12
No new posts BPXBATCH access problem JCL & VSAM 2
No new posts BPXBATCH PARM TOO LONG All Other Mainframe Topics 10
No new posts BPXBATCH Rexx Shell Script Return Code All Other Mainframe Topics 1
Search our Forums:

Back to Top