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: 66

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

Active Member


Joined: 29 Apr 2008
Posts: 967
Location: Maryland

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: 66

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: 8794
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

Senior Moderator


Joined: 14 Mar 2007
Posts: 10730
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

Active Member


Joined: 29 Apr 2008
Posts: 967
Location: Maryland

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

Active Member


Joined: 29 Apr 2008
Posts: 967
Location: Maryland

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: 2591
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 Printing a dataset in DUMP format wit... ABENDS & Debugging 2
No new posts Command line placement in DB2I panels TSO/ISPF 2
No new posts include cond ascii constant DFSORT/ICETOOL 4
No new posts Capture GDG Dataset Name JCL & VSAM 10
No new posts File-aid batch how to repeat a line... Compuware & Other Tools 2
Search our Forums:

Back to Top