MVSFORUMS.com A Community of and for MVS Professionals
View previous topic :: View next topic
Author
Message
naveen_kj Beginner Joined: 03 Feb 2003 Posts: 18 Topics: 8 Location: India
Posted: Thu Aug 28, 2003 3:07 am Post subject: Reformatting the fields
I need to convert the files from one format to another.
I am facing problem, while converting the numeric fields to characters and viceversa.
From 9(16) to X(16),
X(20) to S9(11) COMP-3,
X(10) to 9(09),
X(10) to 9(05) COMP.
I am using the INREC.
Please suggest the ways to solve it using sort.
Thanks in advance,
Naveen
Back to top
coolman Intermediate Joined: 03 Jan 2003 Posts: 283 Topics: 27 Location: US
Posted: Thu Aug 28, 2003 4:01 am Post subject:
Do you have FileAid at your shop?
Cheers,
Coolman.
________
Chevrolet 150 Last edited by coolman on Sat Feb 05, 2011 1:27 am; edited 1 time in total
Back to top
kolusu Site Admin Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Thu Aug 28, 2003 5:01 am Post subject:
Naveen,
Try this
Code:
INREC FIELDS=(POS,16,ZD,EDIT=(TTTTTTTTTTTTTTTT),
POS,20,ZD,PD,LENGTH=6
POS,10,ZD,EDIT=(TTTTTTTTT)
POS,10,ZD,BI,LENGTH=4)
If you have imbedded spaces for the character fields, the above sort cards will fail.so change use FS instead of ZD for the format
Hope this helps...
cheers
kolusu
Back to top
naveen_kj Beginner Joined: 03 Feb 2003 Posts: 18 Topics: 8 Location: India
Posted: Thu Aug 28, 2003 10:02 am Post subject:
Kolusu,
I am getting error while converting 9(16) to X(16),
The Error message is:
WER271A INREC STATEMENT : NUMERIC FIELD ERROR
and the '*' is pointing below ,16, (the length of the field)
Quote:
INREC FIELDS=(1:1,2,
3,16,ZD,EDIT=(TTTTTTTTTTTTTTTT),
Coolman we have the FileAid.
Naveen
Back to top
Deepakkt Beginner Joined: 14 Sep 2003 Posts: 1 Topics: 0
Posted: Sun Sep 14, 2003 6:01 am Post subject:
Naveen,
The length limit is 15 for reformatting / editing.
I have a similar requirement
(to reformat a 32 byte number) to a PD field of length 10 (truncation is okay). Any pointers on how this can be achieved.
Thanks.
Back to top
vkphani Intermediate Joined: 05 Sep 2003 Posts: 483 Topics: 48
Posted: Tue Feb 24, 2004 6:54 am Post subject:
Can anybody pls explain how to change the format using File Aid.
Back to top
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum