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

Inputting data in run jcl when we are using GETDATA in pl/1


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gvt460

New User


Joined: 04 Mar 2005
Posts: 23

PostPosted: Tue Oct 25, 2005 12:47 pm
Reply with quote

hi,
how can we give input data in run jcl when we are using getdata in
pl/1 program?
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Tue Oct 25, 2005 6:37 pm
Reply with quote

If your run jcl is passing values to your PL/1 variables ,say NAME,AGE,RANK and REMARKS,then the input for getdata is like...
NAME='ARUN', AGE=5, RANK=1, REMARKS='VERY GOOD';
Let us know,if you are looking for more.
Regards,
Sridevi.
Back to top
View user's profile Send private message
gvt460

New User


Joined: 04 Mar 2005
Posts: 23

PostPosted: Thu Oct 27, 2005 10:36 am
Reply with quote

thanks for u r reply sridevi.i am very new to pl/1.i am getting soc4 for this
simple program plz check it.
HAI:PROC OPTIONS(MAIN);
DCL AGE FIXED DEC(2);
DCL NAME CHAR(9);
DCL RANK CHAR(1);
GET DATA;
END;
this my program.i am sending my run jcl also plz check it.
//MTPLP07P JOB NOTIFY=&SYSUID,LINES=(1,CANCEL)
//STEP EXEC PGM=NEW
//STEPLIB DD DSN=MTPLP07.VENKI.LOADLIB,DISP=SHR --> LOAD LIB
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
AGE=23,NAME='VENKATESH',RANK='1';
i hope u will give reply.& give me good reference book for pl/1.
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Thu Oct 27, 2005 6:50 pm
Reply with quote

Your pgm should end with END HAI; and the run jcl should end with /*. Try giving blank space after comma in the input stream(I have used 'b' to indicate blank)....AGE=23,bNAME='VENKATESH',bRANK='1';
Hope this helps. PL/I manual is available in this website. Reference book is Joan K Hughes.
Regards,
Sridevi
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 2
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top