View previous topic :: View next topic
|
Author |
Message |
gvt460
New User
Joined: 04 Mar 2005 Posts: 23
|
|
|
|
hi,
how can we give input data in run jcl when we are using getdata in
pl/1 program? |
|
Back to top |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
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 |
|
|
gvt460
New User
Joined: 04 Mar 2005 Posts: 23
|
|
|
|
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 |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
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 |
|
|
|