Page 1 of 2

OMIT

PostPosted: Mon Nov 30, 2009 7:25 pm
by indrjn
Hi!
the output shows '0' and '-' in column 9 all pages
1.i want to omit and shows the result
2. result shows in right corner of the page
the result shows in beginiing of the page
3. each i dont want header i want header first page only
this is the code i have it
but it gives the errror in omit
OPTION COPY
OMIT COND=(9,1,CH,EQ,C'-',OR,(9,1,CH,EQ,C'0')
result page
REPORT RPT2 NOSPREAD SUMSPACE 0 PRINTER SYSPRT1
for header it shows from input i want only in first page
could you help me

Re: OMIT

PostPosted: Tue Dec 01, 2009 4:06 am
by dick scherrer
Hello and welcome to the forum,

You need to post some sample input data (use the Code tag) and the output you want from that sample input. You need to mention the relevant data positions and the "rules" for getting form the input to the output. Also, mention the recfm and lrecl of the files.

You mention an Easytrieve question (as this is the Easytrieve part of the forum), but have posted what looks like sort control statements. . .

Re: OMIT

PostPosted: Tue May 11, 2010 12:10 am
by indrjn
Hi
i am new to this form . the output shows
but i want the headers only one time and how to remove the bold lines adnd spaces and records total 4
each page showing headers. that i dont want that
do i have to write in easytrive plus commands.coudl you help me

05/10/10 srno account Records accountid accountname
XXXX XXXX 1 XXXXXX XXXXXXXXXXXXX
XXX XXXX 1 XXXXX XXXXXXXXXX
XXX XXXX 1 XXXXX XXXXXXXXXX
XXX XXXX 1 XXXXX XXXXXXXXXX
4

05/10/10 srno account Records accountid accountname

XXXX XXXX 1 XXXXXX XXXXXXXXXXXXX
XXX XXXX 1 XXXXX XXXXXXXXXX
XXX XXXX 1 XXXXX XXXXXXXXXX
XXX XXXX 1 XXXXX XXXXXXXXXX
4


05/10/10 srno account Records accountid accountname
XXXX XXXX 1 XXXXXX XXXXXXXXXXXXX
XXX XXXX 1 XXXXX XXXXXXXXXX
XXX XXXX 1 XXXXX XXXXXXXXXX
XXX XXXX 1 XXXXX XXXXXXXXXX
4

Re: OMIT

PostPosted: Tue May 11, 2010 12:47 am
by dick scherrer
Hello,

Is this a new question or is this somehow related to the question from last year?

It is not at all clear what you want . . .

Suggest you post some sample input and then the output you want from that exact sample. Does the code that is running use REPORT to generate output?

Re: OMIT

PostPosted: Tue May 11, 2010 1:28 am
by indrjn
Thanks for helping out
Report generate output
input has layout which has records
output i need to include column as records
i dont want summary of records that shows above in each and every page 4 , 5 and so on
and remove the header each and every page, firstpage only i need header,

Re: OMIT

PostPosted: Tue May 11, 2010 2:49 am
by dick scherrer
Hello,

To repeat:
Suggest you post some sample input and then the output you want from that exact sample.

You need to provide the requested info.

output i need to include column as records
I don't know what this means.

To do what you want, you may need to simply write an output file rather than a report. . .

Re: OMIT

PostPosted: Tue May 11, 2010 3:09 am
by indrjn
Hello
coudl you show me the sample how to write the out put file .
or for reprot do i get any training or demo in this website. i can see that. thanks again.

Re: OMIT

PostPosted: Tue May 11, 2010 3:19 am
by dick scherrer
Hello,

An output file is defined with the same syntax as an input file:
FILE TESTFILE FB(80 6160)
and then name the fields.

We don't have any "standard" training or demos on this site. We try to keep up with questions, but are not able to provide training.

Re: OMIT

PostPosted: Tue May 11, 2010 4:46 am
by indrjn
ok i got it will getback to you soon.
another question related with this
is that any way to write the code
in edit mode
c "0", " ' 1 all
i change 0 to space in postiion one
but how do i write the code
could you help me thanks

Re: OMIT

PostPosted: Tue May 11, 2010 6:00 am
by dick scherrer
Hello,

but how do i write the code
I don't understand what this is asking :?

You posted an edit change command - which will change things. To "write code" simply key the code into the file/member.