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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Inputting data in run jcl when we are using GETDATA in pl/1
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    Post subject:
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    Post subject: Re: Inputting data in run jcl when we are using GETDATA in p
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am


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