Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 7315

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: 10327
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: 7315

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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm
No new posts String after '.' (period) is not copy... balaji81_k SYNCSORT 6 Wed Aug 23, 2017 9:35 pm
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am
No new posts copying data without knowing location Arun Raj DFSORT/ICETOOL 12 Thu Jul 20, 2017 1:03 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us