Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum 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 Member


Joined: 29 Apr 2008
Posts: 566
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: 8784
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: 10626
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 Member


Joined: 29 Apr 2008
Posts: 566
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 Member


Joined: 29 Apr 2008
Posts: 566
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: 2271
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 DFSMShsm Dataset Recovery with B and ... Joerg.Findeisen JCL & VSAM 0 Sat Oct 05, 2019 10:01 pm
No new posts String to ASCII conversion JPLMARTINS COBOL Programming 4 Sun Sep 29, 2019 12:00 am
No new posts Organization of a migrated dataset saravanakmr.tpr All Other Mainframe Topics 2 Fri Sep 20, 2019 6:10 pm
No new posts Move a particular line from a PS file... Jitesh Kumar CLIST & REXX 7 Mon Aug 05, 2019 2:48 am
No new posts TSO TEST writing to dataset Harold Barnes IBM Tools 3 Sat Aug 03, 2019 3:02 am

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