Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Inserting a space in between the record(PS)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Inserting a space in between the record(PS)
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: 2180
Location: @my desk

PostPosted: Sat Nov 15, 2008 4:02 pm    Post subject:
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    Post subject: hi
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: 2180
Location: @my desk

PostPosted: Sat Nov 15, 2008 4:51 pm    Post subject:
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    Post subject: Hi
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Sat Nov 15, 2008 5:55 pm    Post subject: Reply to: Inserting a space in between the record(PS)
Reply with quote

You did not tell what sort product You have
here is a link to the DFSORT manuals
www.ibm.com/systems/support/storage/software/sort/mvs/srtmpub.html
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
http://ibmmainframes.com/viewtopic.php?t=34381&highlight=reformatting
http://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: 2180
Location: @my desk

PostPosted: Sat Nov 15, 2008 6:04 pm    Post subject:
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 Moderator


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

PostPosted: Sun Nov 16, 2008 1:08 am    Post subject:
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:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html
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    Post subject: Hi Frank
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us