IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Easytrieve Display not starting at column 1


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tangentray

New User


Joined: 30 Dec 2006
Posts: 20
Location: Kolkata, India

PostPosted: Tue May 05, 2009 6:42 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Tue May 05, 2009 6:46 pm
Reply with quote

What is the format and record length of the sysout dataset you are showing, FB or FBA?
Back to top
View user's profile Send private message
tangentray

New User


Joined: 30 Dec 2006
Posts: 20
Location: Kolkata, India

PostPosted: Tue May 05, 2009 7:13 pm
Reply with quote

o/p dataset:

Code:
DCB=(RECFM=FB,LRECL=151)
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Tue May 05, 2009 7:33 pm
Reply with quote

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
View user's profile Send private message
tangentray

New User


Joined: 30 Dec 2006
Posts: 20
Location: Kolkata, India

PostPosted: Tue May 05, 2009 7:37 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Tue May 05, 2009 8:10 pm
Reply with quote

Quote:
but the o/p file after closure still remains lrecl=151.
But what is the recfm?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts How to load to DB2 with column level ... DB2 6
No new posts RC query -Time column CA Products 3
No new posts first column truncated in search result IBM Tools 13
No new posts Count the number of characters in a f... CA Products 1
Search our Forums:

Back to Top