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
 

 

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 UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Need input in Scheduling Benchwarmer CA Products 5 Tue Jun 06, 2017 1:44 am
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm


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