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: 2180
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 SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts SORT- outrec ram_vizag DFSORT/ICETOOL 10 Tue Sep 27, 2016 12:50 am
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm


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