Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Some problem facing in OUTREC

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

New User


Joined: 12 Mar 2007
Posts: 1
Location: kolkata

PostPosted: Mon Feb 16, 2009 10:12 am    Post subject: Some problem facing in OUTREC
Reply with quote

Hi,

I want to copy from input file from the 2nd position onwards and put it to outptut dataset. Both input and output dataset should be variable length.
In the sort card i have used...where LRECL is 109

Code:

  SORT   FIELDS=COPY
  OUTREC  FIELDS=(6,109)


When i ran this.. it gave the error message..
RECORD TYPE IS V - DATA STARTS IN POSITION 5
Back to top
View user's profile Send private message

Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2276
Location: @my desk

PostPosted: Mon Feb 16, 2009 10:34 am    Post subject:
Reply with quote

You can use these DFSORT statements:

Code:
 
  SORT FIELDS=COPY
  OUTREC FIELDS=(1,4,5:6)
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 Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us