View previous topic :: View next topic
|
Author |
Message |
tangentray
New User
Joined: 30 Dec 2006 Posts: 20 Location: Kolkata, India
|
|
|
|
Hi all,
I an new to Easytrieve. I was trying to write a formatted output into a flat file. I am using display instead of put since I need the data formatted. Everything done on formatting, the problem I am facing is that in my shop a code like:
Code: |
DISPLAY 'THIS SHOULD START AT FIRST COLUMN' |
gives an output:
Code: |
=COLS> ----+----1----+----2----+----3
000001 THIS SHOULD START AT FIRST COLUMN
|
That is the first position is left blank and the data is printed from next column. I thought it should start from column 1. Please note that the output goes to an flat file.
Am absolutely out of ideas. Please help. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
What is the format and record length of the sysout dataset you are showing, FB or FBA? |
|
Back to top |
|
|
tangentray
New User
Joined: 30 Dec 2006 Posts: 20 Location: Kolkata, India
|
|
|
|
o/p dataset:
Code: |
DCB=(RECFM=FB,LRECL=151) |
|
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
About the format 1 of the DISPLAY statement:
CA-Easytrieve/Plus Reference Guide wrote: |
When you specify file-name-1, CA-Easytrieve/Plus prints data to the named file.
If you do not specify file-name-1, the default is SYSPRINT/SYSLST.
Note: The named file (file-name-1) should be a PRINTER file or unpredictable
results could occur. |
Reguarding the PRINTER file:
CA-Easytrieve/Plus Reference Guide also wrote: |
The PRINTER option indicates print output files. Although input/output
statements (GET, PUT, READ, WRITE) cannot reference these printer files, the
DISPLAY statement and REPORT statements can reference them. Unless
otherwise coded, record length and blocksize default to one more than the
LINESIZ entry in the Options Table. The additional character contains the ASA
control character. |
Notice the last line about the additional character for ASA printer control.
What is the recfm recsz of the output dataset after it is closed? |
|
Back to top |
|
|
tangentray
New User
Joined: 30 Dec 2006 Posts: 20 Location: Kolkata, India
|
|
|
|
hmmm... that might be the reason.
but the o/p file after closure still remains lrecl=151.
Code: |
FILE STATISTICS - CA-EASYTRIEVE PLUS 6.4 0311-05/05/09- 6.02-JSN00025
DMP 33,509 INPUT SAM FIX BLK 150
ERR 67,018 OUTPUT SAM FIX BLK 151
|
So is the actual file.[/code] |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Quote: |
but the o/p file after closure still remains lrecl=151. |
But what is the recfm? |
|
Back to top |
|
|
|