IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need options for OUTREC when Converting a file


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rejinair83
Warnings : 1

New User


Joined: 06 Feb 2007
Posts: 4
Location: Trivandrum

PostPosted: Tue Feb 06, 2007 10:31 pm
Reply with quote

I have an input file(fileA) of LRECL=200, I want to convert this file into a 220 byte file(fileB) which has the same 1-199 fields as
in fileA plus an additional comp field which should be filled with numeric value 5100 and rest filler upto 220.

Please help me to code this. icon_biggrin.gif
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Feb 06, 2007 10:55 pm
Reply with quote

Have you looked at the manual for this help yet?
A simple copy and reformat, there are plenty of examples around.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Wed Feb 07, 2007 12:04 am
Reply with quote

So you want input positions 1-199, followed by a comp (=binary) field for 5100 and then "filler" up to position 220 - right?

You really haven't given enough information.

1-199 means you don't want input position 200 - right?

What length do you want for the comp field (e.g. 2 bytes, 4 bytes?).

What character do you want for the "filler"?
Back to top
View user's profile Send private message
rejinair83
Warnings : 1

New User


Joined: 06 Feb 2007
Posts: 4
Location: Trivandrum

PostPosted: Wed Feb 07, 2007 12:55 pm
Reply with quote

The comp field that i want is of 6 bytes ie from 200-205 and the filler upto 220.
Filler can be blanks.. icon_biggrin.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Feb 07, 2007 9:16 pm
Reply with quote

Hello,

What code will define this 6-byte binary field? From my recollection, COMP doesn't come in a 6-byte size.
Back to top
View user's profile Send private message
rejinair83
Warnings : 1

New User


Joined: 06 Feb 2007
Posts: 4
Location: Trivandrum

PostPosted: Wed Feb 07, 2007 9:21 pm
Reply with quote

Thank you William,
The manual was really helpful icon_biggrin.gif
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Wed Feb 07, 2007 9:37 pm
Reply with quote

rejinair83,

Do you still need help with this or did you figure it out?
Back to top
View user's profile Send private message
rejinair83
Warnings : 1

New User


Joined: 06 Feb 2007
Posts: 4
Location: Trivandrum

PostPosted: Wed Feb 07, 2007 9:40 pm
Reply with quote

Thanks Frank,

I had figured out the mistake.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top