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
 

 

Unload data from table using JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
saideepu

New User


Joined: 30 Jan 2013
Posts: 9
Location: india

PostPosted: Thu Oct 03, 2013 3:39 pm    Post subject: Unload data from table using JCL
Reply with quote

HI,

i want to unload data from table using JCL with dynamic input values,so i tried like below but am facing problem(INVALID OPERAND '' FOR KEYWORD 'ID'),if any one know please suggest me.

//JOB123U JOB (ACCT),'UNLOAD',CLASS=A,MSGCLASS=A,NOTIFY=&SYSUID

// SET MINVAL=0
// SET MAXVAL=5000

****

//SYSIN DD *
UNLOAD DATA FROM TABLE SIMOTIME.DATA.SUB998D1
(
ID INTEGER EXTERNAL,
ATSN,
)
WHEN (ATSN <> '' AND ID >= &MINVAL AND ID <= &MAXVAL)


Thanks
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1825
Location: UK

PostPosted: Thu Oct 03, 2013 3:47 pm    Post subject:
Reply with quote

Well, your keyword ID is not a JCL keyword - it is in your program control cards but you do not mention which program you are using. Probably something to do with DB2? In which case probably posting in DB2 would be a better idea in future.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1771
Location: Bloomington, IL

PostPosted: Thu Oct 03, 2013 4:01 pm    Post subject:
Reply with quote

Incidentally, Deepa-chan, you should be aware that JCL and control cards blindly copied from Simotime will almost certainly not work on your machine.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Thu Oct 03, 2013 4:02 pm    Post subject: Reply to: Unload data from table using JCL
Reply with quote

JCL Symbol Substitution is not done for data cards. You'll need to pre-process your JCL and cards and then SUBmit the output., or kick into the INTRDR (if you are able) depending on how you do your own substitution.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Paasing symbolic parameter to instrea... Anirudh Anand JCL & VSAM 0 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 8 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


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