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: 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: 10256
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 Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm


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