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 Sorting group data rajella DFSORT/ICETOOL 4 Sun Jan 22, 2017 11:32 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm


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