View previous topic :: View next topic
|
Author |
Message |
umasankarmf
New User
Joined: 08 Sep 2008 Posts: 43 Location: india
|
|
|
|
Hi,
I have a requirement like " I need to copy the data from one PS to other PS while copying I need to insert some space in between".
Can any body suggest me..........!
Thanks in advance |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
umasankar,
you can do this using any of the sort products installed in your shop, but you need to provide some more details like input/output LRECL,position at which space is to be inserted etc.... |
|
Back to top |
|
|
umasankarmf
New User
Joined: 08 Sep 2008 Posts: 43 Location: india
|
|
|
|
Hi Arun,
Thanks for reply.
My input dataset LRECL=1800
Output dataset LRECL=1826
I need spaces to be inserted at positios from 27 to 55. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
umasankar,
Quote: |
My input dataset LRECL=1800
Output dataset LRECL=1826
I need spaces to be inserted at positios from 27 to 55.
|
This comes to 29 spaces in case your output file length would be 1829. But your output LRECL is only 1826 !!! |
|
Back to top |
|
|
umasankarmf
New User
Joined: 08 Sep 2008 Posts: 43 Location: india
|
|
|
|
Arun,
Leave the LRECL and tell me the weather it is possible or not. If possible give the code. (consider as you like) Positions from 26 to 53.
Thanx in advance........... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
you can do this using any of the sort products installed in your shop, but you need to provide some more details like input/output LRECL,position at which space is to be inserted etc....
_________________
Arun |
umasankar,
Did you bother to read what is posted ? it's not urgent for anybody here but you. To expect help from forum you need to provide the details asked here. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
umasankar,
The DFSORT control statements would be in this form:
Code: |
OPTION COPY
INREC BUILD=(1,26,nX,27,m2)
|
where n is the number of spaces you want to insert and m2 is the length of bytes you want to keep starting at input position 27.
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:
Use [URL] BBCode for External Links |
|
Back to top |
|
|
umasankarmf
New User
Joined: 08 Sep 2008 Posts: 43 Location: india
|
|
|
|
Thank you very much............! Its working fine.......... |
|
Back to top |
|
|
|