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
 
Need to strip off first line - ascii dataset with LF EOL

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

New User


Joined: 14 Jun 2005
Posts: 59

PostPosted: Thu May 02, 2019 12:35 am    Post subject: Need to strip off first line - ascii dataset with LF EOL
Reply with quote

Is there a way to have DFSORT do something like a SKIPREC or STOPAFT on a sequential dataset containing LF separated ASCII lines ?
Back to top
View user's profile Send private message

sergeyken

Active User


Joined: 29 Apr 2008
Posts: 440
Location: Maryland

PostPosted: Thu May 02, 2019 4:26 am    Post subject: Re: Need to strip off first line - ascii dataset with LF EOL
Reply with quote

harisukumaran wrote:
Is there a way to have DFSORT do something like a SKIPREC or STOPAFT on a sequential dataset containing LF separated ASCII lines ?

A dataset always contains records, or rows, or lines provided by zOS supported conventions.
A dataset cannot contain LF separated ASCII lines; otherwise it would not be a dataset, but something else.
Back to top
View user's profile Send private message
harisukumaran

New User


Joined: 14 Jun 2005
Posts: 59

PostPosted: Fri May 03, 2019 5:24 am    Post subject:
Reply with quote

Never heard datasets being defined that way
I see plenty of datasets that contain ascii and utf-8 data everyday. z/OS nowadays does support processing of various encodings including various ascii based encodings. Anyway, please do let me know if you know of a way to do this with DFSORT
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8782
Location: Welsh Wales

PostPosted: Fri May 03, 2019 11:46 am    Post subject:
Reply with quote

Why does it have to be DFSORT ?

From your original request there is absolutely no way on earth that the responders here could know what you wish to achieve, and be in a position to suggest alternatives.

So, please, exactly what is it that you want to achieve here
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10599
Location: italy

PostPosted: Fri May 03, 2019 11:51 am    Post subject: Reply to: Need to strip off first line - ascii dataset with LF EOL
Reply with quote

if the file is on the USS filesystem
DFSORT can handle that
the DFSORT manuals have quite a few examples

https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.ice/ice.htm
Back to top
View user's profile Send private message
sergeyken

Active User


Joined: 29 Apr 2008
Posts: 440
Location: Maryland

PostPosted: Fri May 03, 2019 6:12 pm    Post subject:
Reply with quote

harisukumaran wrote:
Never heard datasets being defined that way
I see plenty of datasets that contain ascii and utf-8 data everyday. z/OS nowadays does support processing of various encodings including various ascii based encodings. Anyway, please do let me know if you know of a way to do this with DFSORT

In that case do not use the term dataset, to not create a big mess in minds.
Back to top
View user's profile Send private message
sergeyken

Active User


Joined: 29 Apr 2008
Posts: 440
Location: Maryland

PostPosted: Fri May 03, 2019 6:54 pm    Post subject:
Reply with quote

sergeyken wrote:
harisukumaran wrote:
Never heard datasets being defined that way
I see plenty of datasets that contain ascii and utf-8 data everyday. z/OS nowadays does support processing of various encodings including various ascii based encodings. Anyway, please do let me know if you know of a way to do this with DFSORT

In that case do not use the term dataset, to not create a big mess in minds.

The very first glimpse at DFSORT manual shows definition like this:
Quote:
Sort with z/OS UNIX files


Nothing about datasets in that case!
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 2151
Location: NY,USA

PostPosted: Fri May 03, 2019 8:45 pm    Post subject:
Reply with quote

Quote:
Is there a way to have DFSORT do something like a SKIPREC or STOPAFT on a sequential dataset containing LF separated ASCII lines ?

In simple way show us sample input and expected output with what logic and then may be some one here could understand and help you.
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 Placement of an LPALIB dataset for IPL Alan Playford JCL & VSAM 3 Sun May 12, 2019 5:50 pm
No new posts Display current IMS region on an On-l... Time2Live IMS DB/DC 1 Fri May 03, 2019 1:59 am
No new posts Line numbers contains last 6 digits o... selvagukan TSO/ISPF 4 Mon Apr 22, 2019 8:32 pm
No new posts FTP ASCII-Text to Mainframe - REG Dhamodharan.G All Other Mainframe Topics 4 Wed Mar 27, 2019 1:02 pm
No new posts Unpack 'PACK ON' dataset via job? Auryn TSO/ISPF 2 Thu Mar 14, 2019 4:09 pm

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