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

How to create file using Sort without using Input file?


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

New User


Joined: 21 Feb 2008
Posts: 21
Location: India

PostPosted: Wed Oct 28, 2009 7:59 pm
Reply with quote

I want to create an Output file with the following requirements

1) FB with length of 400
2) It will have 4 records (Header + 3 Records )


The output file should have the following contents.

0008888880000000000000000
0003678421280000003
0004335271280000003
0007325621280000003


Please let me know how can this be achieved using DFSORT/ICETOOL without using an Input File.


Thanks
Shaheen
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Wed Oct 28, 2009 8:52 pm
Reply with quote

Shaheen Kalokhe,

The following DFSORT JCL will give you the desired results
Code:

//STEP0100 EXEC PGM=SORT                   
//SYSOUT   DD SYSOUT=*                     
//SORTIN   DD *                             
//SORTOUT  DD SYSOUT=*                     
//SYSIN    DD *                             
  SORT FIELDS=COPY                         
  OUTFIL REMOVECC,NODETAIL,BUILD=(400X),   
  TRAILER1=('0008888880000000000000000',/, 
            '0003678421280000003',/,       
            '0004335271280000003',/,       
            '0007325621280000003')         
//*
Back to top
View user's profile Send private message
Shaheen Kalokhe

New User


Joined: 21 Feb 2008
Posts: 21
Location: India

PostPosted: Fri Oct 30, 2009 8:03 pm
Reply with quote

Skolusu,

Thanks a ton for your reply. The Sort worked fine. I went through the manuals to understand the use of REMOVECC & NODETAIL. I understood the use of REMOVECC but could not understand the use of NODETAIL.

Please explain a bit about NODETAIL.


Thanks & Regards
Shaheen
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Fri Oct 30, 2009 8:38 pm
Reply with quote

Hi,

NODETAIL option will supress the input records from being copied to o/p file.
Only the trailer statement o/p will be in the o/p file.

NODETAIL eliminates the data records.

Thanks & Regards,
Back to top
View user's profile Send private message
Shaheen Kalokhe

New User


Joined: 21 Feb 2008
Posts: 21
Location: India

PostPosted: Mon Nov 02, 2009 12:00 pm
Reply with quote

Thank you

vasanthz
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 TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
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