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

Copying to a different LREC length


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Oct 25, 2011 2:39 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10833
Location: italy

PostPosted: Tue Oct 25, 2011 2:44 pm
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

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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Oct 25, 2011 2:48 pm
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

Moderator Emeritus


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

PostPosted: Tue Oct 25, 2011 7:42 pm
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 Developer


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

PostPosted: Tue Oct 25, 2011 11:24 pm
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:

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000080
Back to top
View user's profile Send private message
calcop69

New User


Joined: 23 Jun 2022
Posts: 14
Location: Italy

PostPosted: Thu Jun 23, 2022 2:54 pm
Reply with quote

Hallo, I've a input file with LREC = 1000. Each record contains a char '$' at a unknow position

I'd like to have an output file FB with LREC based on maximum position of the char '$'. In this example should be 50

It's also possible remove the character '$' in the output file at the same time?

Many thanks

marco
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10833
Location: italy

PostPosted: Thu Jun 23, 2022 5:57 pm
Reply with quote

do not tailgate a 11 years old topic ...
start Your own !
Back to top
View user's profile Send private message
calcop69

New User


Joined: 23 Jun 2022
Posts: 14
Location: Italy

PostPosted: Thu Jun 23, 2022 6:15 pm
Reply with quote

enrico-sorichetti wrote:
do not tailgate a 11 years old topic ...
start Your own !


Thank You, sorry but it's my first time
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts Inserting variable length into output... JCL & VSAM 2
No new posts Output LREC based on specific character DFSORT/ICETOOL 22
No new posts SORT ERROR PARAMETER VALUE EXCEEDS M... DFSORT/ICETOOL 12
No new posts ICETOOL with JOINKEY for Big record l... DFSORT/ICETOOL 12
Search our Forums:

Back to Top