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

Query about SYNCSORT OUTFIL OUTREC


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mahua Mitra

New User


Joined: 26 Apr 2007
Posts: 49
Location: Delhi

PostPosted: Tue Jun 12, 2007 11:22 am
Reply with quote

In Syncsort, what does the following mean?
OUTFIL OUTREC=(2X,
006,08,
1X,
019,20,
1X,
045,20,

Thanks
Back to top
View user's profile Send private message
vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Tue Jun 12, 2007 11:42 am
Reply with quote

Q)In Syncsort, what does the following mean?
OUTFIL OUTREC=(2X,
006,08,
1X,
019,20,
1X,
045,20,


Answer
The o/p file is reformatted for 2 spaces ,from pos 6th to 8 bytes will move the data o/p file,1 space ...etc
Back to top
View user's profile Send private message
Mahua Mitra

New User


Joined: 26 Apr 2007
Posts: 49
Location: Delhi

PostPosted: Tue Jun 12, 2007 12:22 pm
Reply with quote

You mean, in the first case that is 2X, 006,08
4th and 5th byte is spaces , 6th to 13th byte is data?
or 6th to 8th byte is data??
if that is the case,then what abt the first 3 bytes?
Back to top
View user's profile Send private message
ibmmainframesyntel

Active User


Joined: 26 Feb 2007
Posts: 126
Location: Chennai

PostPosted: Tue Jun 12, 2007 12:44 pm
Reply with quote

Hi Mitra,


OUTFIL OUTREC=(2X,
006,08,
1X,
019,20,
1X,
045,20,


According to ur control card,

2X- Two spaces in first two position in output file.
006,08 - data from input file is moved to 3rd-10th position in output file
1X - one space is in 11th position of output file.
019,20 - data from input file is moved to 12th- 31st position in output file
1X - one space is in 32nd position of output file.
045,20- data from input file is moved to 33rd- 52nd position in output file


006,08 - means - In input file from 6th position,8 bytes is moved to output file

019,20 - means - In input file from 19th position,20 bytes is moved to output file

045,20 - means - In input file from 45th position,20 bytes is moved to output file
Back to top
View user's profile Send private message
ibmmainframesyntel

Active User


Joined: 26 Feb 2007
Posts: 126
Location: Chennai

PostPosted: Tue Jun 12, 2007 12:48 pm
Reply with quote

Ur output will be..

123456789012345678901234567890123456789012345678901234567890
XXDATA1....XDATA2.........................XData3........................................
Back to top
View user's profile Send private message
Mahua Mitra

New User


Joined: 26 Apr 2007
Posts: 49
Location: Delhi

PostPosted: Tue Jun 12, 2007 1:36 pm
Reply with quote

Thank u so much
Mahua
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts RC query -Time column CA Products 3
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top