View previous topic :: View next topic
|
Author |
Message |
anthony alan lukose
New User
Joined: 25 Oct 2011 Posts: 2 Location: Malaysia
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Please consult manual, search forum. |
|
Back to top |
|
|
anthony alan lukose
New User
Joined: 25 Oct 2011 Posts: 2 Location: Malaysia
|
|
|
|
sorry, am new int this forum.. where's Manual, Search |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
calcop69
New User
Joined: 23 Jun 2022 Posts: 14 Location: Italy
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
do not tailgate a 11 years old topic ...
start Your own ! |
|
Back to top |
|
|
calcop69
New User
Joined: 23 Jun 2022 Posts: 14 Location: Italy
|
|
|
|
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 |
|
|
|