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

Inserting a space in between the record(PS)


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
umasankarmf

New User


Joined: 08 Sep 2008
Posts: 43
Location: india

PostPosted: Sat Nov 15, 2008 3:54 pm
Reply with quote

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
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Sat Nov 15, 2008 4:02 pm
Reply with quote

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
View user's profile Send private message
umasankarmf

New User


Joined: 08 Sep 2008
Posts: 43
Location: india

PostPosted: Sat Nov 15, 2008 4:34 pm
Reply with quote

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
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Sat Nov 15, 2008 4:51 pm
Reply with quote

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 !!! icon_rolleyes.gif
Back to top
View user's profile Send private message
umasankarmf

New User


Joined: 08 Sep 2008
Posts: 43
Location: india

PostPosted: Sat Nov 15, 2008 4:56 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Nov 15, 2008 5:55 pm
Reply with quote

You did not tell what sort product You have
here is a link to the DFSORT manuals
Use [URL] BBCode for External Links
or click on the "IBM Manuals" link at top of the page

also searching the forum ( dfsort at least ) with something like reformatting records
will give lots of pointers

like for example
ibmmainframes.com/viewtopic.php?t=34381&highlight=reformatting
ibmmainframes.com/viewtopic.php?t=27630&highlight=reformatting
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Sat Nov 15, 2008 6:04 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Sun Nov 16, 2008 1:08 am
Reply with quote

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
View user's profile Send private message
umasankarmf

New User


Joined: 08 Sep 2008
Posts: 43
Location: india

PostPosted: Mon Nov 17, 2008 11:00 am
Reply with quote

Thank you very much............! Its working fine..........
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
Search our Forums:

Back to Top