Page 1 of 1

Basic question on pl/i ?

PostPosted: Tue Jul 03, 2012 10:55 am
by kandrepavan
Hi all,

Sample code :
DISP:PROCEDURE    OPTIONS(MAIN);
  DCL B FIXED DECIMAL(7);       
  GET LIST(B);                   
  PUT LIST(B);                   
END DISP;         


I am giving input as
//SYSIN DD *               
                   1234567 
/*
I am getting output as
********************************* TOP OF DATA **********************************
   1234567                                                                     
******************************** BOTTOM OF DATA ********************************

Though i ma giving input either in col 1 of sysin dd * or any column of sysin dd *
i am getting output starting from col 4 of spool
why like so?
can we give input from any column of sysin dd * in pl/i , if we give the same in cobol we will get data truncation?

thanx and regards
pavan

Re: Basic question on pl/i ?

PostPosted: Tue Jul 03, 2012 11:29 am
by NicC
Have you read up about stream I/O in bothe the language reference and the programming guide?