How to generate a Header & trailer records in output file



IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

How to generate a Header & trailer records in output file

Postby Sunnyjo » Wed Jun 04, 2014 11:36 pm

Hi,

Need some help from someone on how to generate a header & trailer records alone by referring date card file.

Please find my requirement

Input :
----+----1----+----2----+----3----+----4----+----5----+----6----+---
********************************* Top of Data **********************
1406 20140602 20140602 DAILY 1406 20140603 00 N
(Previous date) (Current date)

Output :

H06032014
T060320140000000000000000

Can someone please help me on this....
Sunnyjo
 
Posts: 1
Joined: Wed Jun 04, 2014 11:23 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to generate a Header & trailer records in output fil

Postby BillyBoyo » Thu Jun 05, 2014 1:01 am

Use OUTFIL BUILD with the slash operator (/), which allows the creating of multiple outputs from a single input record.
 OUTFIL BUILD=(C'TEXT FOR LINE 1',
               /,
               C'TEXT FOR LINE 2')


Should get you

TEXT FOR LINE 1
TEXT FOR LINE 2


Then replace the literals with the positions you want from your input data.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: How to generate a Header & trailer records in output fil

Postby NicC » Thu Jun 05, 2014 11:01 pm

Not possible by JCL. Perhaps using your sort product for which BillyBoyo has given you the gist.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post