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

I need to insert 2 zeros in the middle of a each record in t


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

New User


Joined: 08 Jun 2007
Posts: 7
Location: Bangalore/India

PostPosted: Fri Mar 13, 2009 10:14 am
Reply with quote

Hi

I need to insert 2 zeros in the middle of a each record in two places of a file

lrecl of i/p file is 80

lrecl of o/p file wil become 84

please help me in writing the sort card
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Mar 13, 2009 10:27 am
Reply with quote

Hi,

where exactly are the 2 sets of zeroes to be inserted ?

More information please.


Gerry
Back to top
View user's profile Send private message
jeevanpower

New User


Joined: 08 Jun 2007
Posts: 7
Location: Bangalore/India

PostPosted: Fri Mar 13, 2009 10:47 am
Reply with quote

hi
i need to insert at

at 119TH posistion and at 175,

i/p LRECL = 441

o/p shul come as LRECL = 445
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Mar 13, 2009 1:59 pm
Reply with quote

Hi,

what happened to the input file with LRECL of 80 ?


Try this with the input file with LRECL of 441, I've assumed it's FB

Code:
//S1       EXEC PGM=SORT                                     
//SYSOUT   DD SYSOUT=*                                       
//SORTIN   DD DSN=INPUT-FILE    lrecl 441   fb               
//SORTOUT  DD DSN=OUTPUT-FILE   lrecl 445   fb               
//SYSIN    DD *                                             
  OPTION COPY                                               
  OUTREC BUILD=(1,118,C'00',119,56,C'00',175,267)           
/*                                                           



Gerry
Back to top
View user's profile Send private message
Arun Prasad R

New User


Joined: 13 Feb 2008
Posts: 7
Location: India

PostPosted: Thu Mar 26, 2009 11:21 am
Reply with quote

Team,
How do I insert Blank characters to the records using OUTREC.
Suppose I have an FB Input file of LRECL 16 and I want it to make it to 80.
i.e, from positin 17 to 80 I want just C ' ' to be inserted.
Let me know the OUTREC syntax.

Regards
Arun R
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Mar 26, 2009 2:15 pm
Reply with quote

This last question has already been answered in another thread.
ibmmainframes.com/viewtopic.php?t=39207&sid=cfb62deb8e2f869ce63591501e8f2f30


Gerry
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top