Joined: 17 Mar 2009 Posts: 11 Location: PUNE,India
1)I am using BPXBATCH utility to pass variables to a script file.....
Basically i need to pass a value which is going beyond a single line to the variable i am using in the script ...how do i do it?
2)Again i am using BPXBATCH utility to copy a unix file from one location to another location..
the target location is so big that it is going beyond a single line...how do i do this
Example code:
//CPYRESPA EXEC PGM=BPXBATCH,COND=(4000,LT)
//STDERR DD PATH='/dir1/error'
// PATHOPTS=(OWRONLY,OCREAT),PATHMODE=SIRWXU
//STDPARM DD *
SH cp
/dir1/dir2/dir3/dir4/dir5/dir6/dir7/dir8/dir9/dir10/sourcefile > /dir1/dir2/dir3/dir4/dir5/dir6/dir7/dir8/dir9/dir10/targetfile
/*
I tried giving '\' at the end of first line and > in the second line it is not working...i have tried many methods but not working...
Joined: 17 Mar 2009 Posts: 11 Location: PUNE,India
1)Could you please explain a bit on the solition you suggested for my first query,
What i understood in i should create aunix file and pass it to the variable?
Code:
STORAGE_VALUE=/varfile
if this is true then will the path will be resolved to data contained in it when it is passed to the script?
2)i tried appending + as you suggested ,but it did not work!
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
Upon further review, the trailing + didn't work but the trailing backslash did (as long as there's no space between the last character and the backslash).
Joined: 17 Mar 2009 Posts: 11 Location: PUNE,India
Thanks a tonne Robert,
I have made changes as you suggested..It worked..two of issues i was facing are solved!
I would also want to mention that i am quite amazed to see your turn arround time...
Great work!
Joined: 17 Mar 2009 Posts: 11 Location: PUNE,India
Hi,
In the above solution we are passing SYSIN data as a unix file ,
Can i create contents of the unix file using batch processing using any utility?
I tried