View previous topic :: View next topic
|
Author |
Message |
nimisanand
New User
Joined: 22 Nov 2005 Posts: 24
|
|
|
|
Hi,
I have a file which is of lenght 361. It is in FB format. I used the following
code to change it to FBA. The output file created has FBA format with a space as carriage control character.
Code:
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=...
//SORTOUT DD RECFM=FBA,DSN=...
//SYSIN DD *
OPTION COPY
INREC BUILD=(X,1,361)
/*
As per my understanding:
Print after advancing one line (single-space).
Question:
Will a header be printed for all pages? |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
what header ?
A page break will require a 1 in position 1 for each page.
Gerry |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Will a header be printed for all pages? |
Your process does a copy. Headers in the input will be copied to the output. Additional headers will not be added. |
|
Back to top |
|
|
nimisanand
New User
Joined: 22 Nov 2005 Posts: 24
|
|
|
|
Hi,
Incase if I require a carriage control character of 1, how can it be acheived? |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
after how many lines is the line break required ?
and do you require a heading ?
Gerry |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
and, after having converted to FBA on what printer are You going to print it ?
the longest line supported on printers that use the ASA control char is 150
IMWTK (Inquiring Minds Want To Know ) |
|
Back to top |
|
|
nimisanand
New User
Joined: 22 Nov 2005 Posts: 24
|
|
|
|
I require a line break after 25 records and the next page needs to have a heading. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
are you saing the first page does not require a heading ?
Gerry |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Hello,
You might want to check this example.
Code: |
//STEP01 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTOUT DD SYSOUT=*
//SORTIN DD *
ABC
ABC
ABC
DEF
DEF
DEF
//SYSIN DD *
OPTION COPY
OUTFIL HEADER2=(C'HEADER-RECORD'),LINES=4 |
SORTOUT
Code: |
1HEADER-RECORD
ABC
ABC
ABC
1HEADER-RECORD
DEF
DEF
DEF
|
|
|
Back to top |
|
|
nimisanand
New User
Joined: 22 Nov 2005 Posts: 24
|
|
|
|
My header is in another PS file which is concatenated with the records. Instead of HEADER-RECORD, is there an option to give the PS file |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
My header is in another PS file |
Nimi,
You need to explain further with file positions. Does the header file have only one record? Length of Header? I think it would be better you post some sample data from all the files and the expected output. |
|
Back to top |
|
|
|