Basic question on pl/i ?

IBM's cross-platform compiler PL/I for MVS, VM & VSE, OS/390 and Enterprise PL/I for z/OS

Basic question on pl/i ?

Postby kandrepavan » Tue Jul 03, 2012 10:55 am

Hi all,

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

I am giving input as
//SYSIN DD *               
I am getting output as
********************************* TOP OF DATA **********************************
******************************** 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
Posts: 35
Joined: Wed Mar 21, 2012 11:03 am
Has thanked: 0 time
Been thanked: 1 time

Re: Basic question on pl/i ?

Postby NicC » Tue Jul 03, 2012 11:29 am

Have you read up about stream I/O in bothe the language reference and the programming guide?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Return to PL/I


  • Related topics
    Last post