Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to code OUTREC for saving the rest of the Input record

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

New User


Joined: 08 Aug 2006
Posts: 10
Location: FRANCE

PostPosted: Fri Aug 11, 2006 8:45 pm    Post subject: How to code OUTREC for saving the rest of the Input record
Reply with quote

I use SORT to copy a dataset and replace some fields :
Here are my statements :
SORT FIELDS=COPY
OUTREC FIELDS=(1,62,C'0000000',70,197,C'000',270)

My datasets are FB/299

The Msg is : ICE126A Inconsistent Reformating Fields Found

It's for the value 270 whitout the length, but i'll like the sort calculate
the rest of the record, i-e 30 .

Can anyone help me ?

icon_question.gif
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Aug 11, 2006 9:01 pm    Post subject:
Reply with quote

You can only use p without m (e.g. 270) for a VB file - in that case, DFSORT copies the variable part of the record. For an FB file, you have to specify p,m - starting position and length.
Back to top
View user's profile Send private message
PUMA

New User


Joined: 08 Aug 2006
Posts: 10
Location: FRANCE

PostPosted: Fri Aug 11, 2006 9:08 pm    Post subject:
Reply with quote

Frank Yaeger wrote:
You can only use p without m (e.g. 270) for a VB file - in that case, DFSORT copies the variable part of the record. For an FB file, you have to specify p,m - starting position and length.


Thank you very much
I read it in the documentation but i wanted to know if it was another way to complete my request
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 IBEGENER RETURN CODE 12 anilkumar922 All Other Mainframe Topics 5 Wed Dec 13, 2017 11:41 am
No new posts query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm
No new posts Finding the plan when code compiled u... Ahemad DB2 1 Fri Dec 01, 2017 6:38 pm
No new posts Strange Code amitc23 COBOL Programming 6 Tue Nov 28, 2017 11:25 am
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm

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