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 What will happen if we dont code STOP... Poha Eater COBOL Programming 4 Mon Jun 04, 2018 5:27 pm
No new posts JCL to set Return code when Time Out ... vinu78 JCL & VSAM 6 Wed May 30, 2018 11:27 am
No new posts How to Count a particular record in a... Mounika Nemani DFSORT/ICETOOL 5 Tue May 29, 2018 1:07 pm
This topic is locked: you cannot edit posts or make replies. Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am
No new posts RESP2 code -502 pshongal CICS 6 Mon May 28, 2018 10:58 am

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