MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Load with 'CASE LIKE Statement'

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
NASCAR9
Intermediate


Joined: 08 Oct 2004
Posts: 274
Topics: 52
Location: California

PostPosted: Fri Jan 07, 2011 1:57 pm    Post subject: Load with 'CASE LIKE Statement' Reply with quote

I'm looking over the Load doc and trying to find a statement that acts like a SQL CASE statment.

Now to my question.

Can I load a column(set as NOT NULL) with a value (0 or 1) based on a field somewhere else in the record? If so, how?
_________________
Thanks,
NASCAR9
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12394
Topics: 75
Location: San Jose

PostPosted: Fri Jan 07, 2011 2:09 pm    Post subject: Reply with quote

NASCAR9,


something like this ?

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNUGJ12/2.14.6?DT=20050323210436#FIGWQ436

or something like this?

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNUGJ12/2.14.6?DT=20050323210436#FIGWQ432

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
NASCAR9
Intermediate


Joined: 08 Oct 2004
Posts: 274
Topics: 52
Location: California

PostPosted: Fri Jan 07, 2011 3:40 pm    Post subject: Reply with quote

Thanks kolusu,
I've looked at both of those options, not what I need.
Code:


My requirements are:

Use a Load job


SET COLUMN =
If position 23:3 = 000 then '01'
             else                    '02'


I know the logic is not correct, but I hope my point gets across.
_________________
Thanks,
NASCAR9
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group