Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Header greater than length- 255

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2238
Location: @my desk

PostPosted: Wed Sep 19, 2007 10:34 pm    Post subject: Header greater than length- 255
Reply with quote

I have a pipe-delimited file of lrecl 502.Can I add a pipe-delimited header row of length =742 and write it into an output file(length =742).
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


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

PostPosted: Wed Sep 19, 2007 11:21 pm    Post subject:
Reply with quote

I'm not sure if you're talking about a header generated with HEADERx or a header from somewhere else. But if you want to create a file with LRECL=742 from a file with LRECL=502, you just have to ensure that the output records are 742 bytes long.

For example, you could pad the 502 byte records with blanks to 742 bytes with OVERLAY in INREC, OUTREC or OUTFIL, e.g.:

Code:

    OUTREC OVERLAY=(742:X)


If that doesn't help, then please explain what you're trying to do in more detail. Examples would help.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2238
Location: @my desk

PostPosted: Thu Sep 20, 2007 1:09 am    Post subject: Reply to: Header greater than length- 255
Reply with quote

Code:
PRDN|CRP|SDIV|STA|POSN|DSC|CLAS|PRG|STYN|CTRCD|CLRCD|------> header(742 length)
 327165045|01|   |4| 000933650|SF FLAT FRONT BARKK--->filtered data(502 length)   
 467973035|01|   |4| 000985854|EVERYDAY KHAKIWTRGCNGR
 468125025|01|   |4| 000899592|BAS CRGO SHORTSWAMPOLI


Code:

INCLUDE=(12,2,CH,EQ,C'0....
HEADER1=('PRDN|CRP|SDIV|STA....




I am using HEADER1=('PRDN|CRP|SDIV|STA......') in the sortcard which I guess can have only upto 255 bytes in it.I want the header and the data rocords
in one file of 742 length.

Thanks,
Arun
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


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

PostPosted: Thu Sep 20, 2007 2:01 am    Post subject:
Reply with quote

Quote:
I am using HEADER1=('PRDN|CRP|SDIV|STA......') in the sortcard which I guess can have only upto 255 bytes in it


Where did you get that idea? HEADERx can have more than 255 bytes. A single constant for HEADERx can have a maximum of 256 characters, but you can have multiple constants.

I think you want something like this:

Code:

   OPTION COPY
   OUTFIL INCLUDE=(12,2,CH,EQ,C'0....),
     OVERLAY=(742:X),
     HEADER1=('constant1...',
         'constant2',
         ...)
/*


Note that you will actually have to break the 742 character constant into multiple constants each less than or equal to 256 characters. And you will either have to make each constant fit on one line (e.g. use multiple constants each less than about 60 characters) or observe the rules for continuation of constants across multiple lines (specify characters up to column 71, then put an * in column 72, then continue in column 2 of the next line).

See the following for DFSORT's continuation rules:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA20/3.3.1?DT=20060615185603
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 6 Sun Nov 06, 2016 8:11 pm
No new posts Joinkeys operation when key1 and key2... Susanta DFSORT/ICETOOL 5 Wed Nov 02, 2016 5:35 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us