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
 

 

Copying to a different LREC length

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
anthony alan lukose

New User


Joined: 25 Oct 2011
Posts: 2
Location: Malaysia

PostPosted: Tue Oct 25, 2011 2:36 pm    Post subject: Copying to a different LREC length
Reply with quote

I want to copy a sequential file… length 240 to another file.. with length 100… ie truncate…. please assist with some same JCL's
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7254

PostPosted: Tue Oct 25, 2011 2:39 pm    Post subject: Reply to: Copying to a different LREC length
Reply with quote

Please consult manual, search forum.
Back to top
View user's profile Send private message
anthony alan lukose

New User


Joined: 25 Oct 2011
Posts: 2
Location: Malaysia

PostPosted: Tue Oct 25, 2011 2:42 pm    Post subject: Reply to: Copying to a different LREC length
Reply with quote

sorry, am new int this forum.. where's Manual, Search
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Tue Oct 25, 2011 2:44 pm    Post subject: Reply to: Copying to a different LREC length
Reply with quote

there are quite a few examples on this same forum just lurk a bit !

the manuals links are at the top of the page

or here

http://www.ibmmainframes.com/viewtopic.php?t=1348
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7254

PostPosted: Tue Oct 25, 2011 2:48 pm    Post subject: Reply to: Copying to a different LREC length
Reply with quote

Even a browse of the forum should find you something likely, like this one. Which happens to be immediately next to yours :-)

EDIT: Or it was when I started, kept on messing up the url tags...
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Oct 25, 2011 7:42 pm    Post subject:
Reply with quote

Hello and welcome to the forum,

Do you have this working now?

If not, where are you stuck?

You need to understand that "JCL's" cannot do this. Some program must be executed (probably DFSORT if this is the sort product on your system).

Suggest you look at BUILD in the manual.

If you find something that is not clear, post what you found and your doubt. SOmeone will be able to clarify.
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: Tue Oct 25, 2011 11:24 pm    Post subject:
Reply with quote

Anthony,

You can use a DFSORT job like the following:

Code:

//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=...  input file (FB/240)
//SORTOUT DD DSN=...  output file (FB/100)
//SYSIN DD *
  OPTION COPY
  INREC BUILD=(1,100)
/*


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:

http://www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000080
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm
No new posts Joinkeys operation when key1 and key2... Susanta DFSORT/ICETOOL 5 Wed Nov 02, 2016 5:35 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm
No new posts File Manager with Variable Length File ahabib IBM Tools 10 Thu Mar 31, 2016 11:00 pm
No new posts Differences between copying members b... E.LAI TSO/ISPF 8 Wed Mar 30, 2016 12:35 pm


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