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

Need to strip off first line - ascii dataset with LF EOL


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
harisukumaran

New User


Joined: 14 Jun 2005
Posts: 75

PostPosted: Thu May 02, 2019 12:35 am
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

Senior Member


Joined: 29 Apr 2008
Posts: 2022
Location: USA

PostPosted: Thu May 02, 2019 4:26 am
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: 75

PostPosted: Fri May 03, 2019 5:24 am
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: 8797
Location: Welsh Wales

PostPosted: Fri May 03, 2019 11:46 am
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri May 03, 2019 11:51 am
Reply with quote

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

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

Senior Member


Joined: 29 Apr 2008
Posts: 2022
Location: USA

PostPosted: Fri May 03, 2019 6:12 pm
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

Senior Member


Joined: 29 Apr 2008
Posts: 2022
Location: USA

PostPosted: Fri May 03, 2019 6:54 pm
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

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Fri May 03, 2019 8:45 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top