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
 

 

Easytrieve Display not starting at column 1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Easytrieve Display not starting at column 1
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: 2150
Location: At my coffee table

PostPosted: Tue May 05, 2009 6:46 pm    Post subject:
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    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Tue May 05, 2009 7:33 pm    Post subject:
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    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Tue May 05, 2009 8:10 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am


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